Commits

Stephen McDonald committed aa565f0

Changed object_pk fields to integer fields in the generic app to resolve some issues with Postgres.

Comments (0)

Files changed (1)

mezzanine/generic/models.py

 
     keyword = models.ForeignKey("Keyword", related_name="assignments")
     content_type = models.ForeignKey("contenttypes.ContentType")
-    object_pk = models.TextField()
+    object_pk = models.IntegerField()
     content_object = GenericForeignKey("content_type", "object_pk")
 
     def __unicode__(self):
 
     value = models.IntegerField(_("Value"))
     content_type = models.ForeignKey("contenttypes.ContentType")
-    object_pk = models.TextField()
+    object_pk = models.IntegerField()
     content_object = GenericForeignKey("content_type", "object_pk")
 
     class Meta: