Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bashu authored and ofekih committed May 25, 2021
1 parent 4a882e8 commit fc1e969
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions hitcount/migrations/0004_auto_20200704_0933.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 2.0.3 on 2020-07-04 09:33

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('hitcount', '0003_auto_20190608_1004'),
]

operations = [
migrations.AlterField(
model_name='hitcount',
name='object_pk',
field=models.PositiveIntegerField(verbose_name='object ID'),
),
]
2 changes: 1 addition & 1 deletion hitcount/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class HitCount(models.Model):
modified = models.DateTimeField(auto_now=True)
content_type = models.ForeignKey(
ContentType, related_name="content_type_set_for_%(class)s", on_delete=models.CASCADE)
object_pk = models.CharField(max_length=128, verbose_name='object ID')
object_pk = models.PositiveIntegerField(verbose_name='object ID')
content_object = GenericForeignKey('content_type', 'object_pk')

objects = HitCountManager()
Expand Down

0 comments on commit fc1e969

Please sign in to comment.