Skip to content

Commit

Permalink
issue weluse#33
Browse files Browse the repository at this point in the history
  • Loading branch information
agusmakmun committed Aug 13, 2018
1 parent 3a1d883 commit 0905a03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion updown/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Vote(models.Model):
date_added = models.DateTimeField(default=timezone.now, editable=False)
date_changed = models.DateTimeField(default=timezone.now, editable=False)

content_object = GenericForeignKey()
content_object = GenericForeignKey('content_type', 'object_id')

class Meta:
unique_together = (('content_type', 'object_id', 'key', 'user',
Expand Down

0 comments on commit 0905a03

Please sign in to comment.