Skip to content

Commit

Permalink
Revert "fix #64"
Browse files Browse the repository at this point in the history
  • Loading branch information
bashu committed Jun 10, 2019
1 parent 7125efc commit 8147881
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 19 deletions.
18 changes: 0 additions & 18 deletions hitcount/migrations/0003_auto_20190608_1004.py

This file was deleted.

2 changes: 1 addition & 1 deletion hitcount/models.py
Expand Up @@ -42,7 +42,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.TextField('object ID')
object_pk = models.PositiveIntegerField('object ID')
content_object = GenericForeignKey('content_type', 'object_pk')

objects = HitCountManager()
Expand Down

0 comments on commit 8147881

Please sign in to comment.