From 0905a03248fd0c21e37019e57706872f0a304259 Mon Sep 17 00:00:00 2001 From: agusmakmun Date: Tue, 14 Aug 2018 05:51:09 +0700 Subject: [PATCH] issue #33 --- updown/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/updown/models.py b/updown/models.py index 7725fd0..00dc2e1 100644 --- a/updown/models.py +++ b/updown/models.py @@ -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',