Skip to content

Commit

Permalink
upload object id now UUID; added parent_object fields re #5, #2
Browse files Browse the repository at this point in the history
  • Loading branch information
jkeifer committed Sep 5, 2015
1 parent 7e5d5fe commit e2d6ca9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ebagis/models/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@

class Upload(ChunkedUpload):
content_type = models.ForeignKey(ContentType)
object_id = models.CharField(max_length=10, null=True, blank=True)
object_id = models.UUIDField(null=True, blank=True)
content_object = GenericForeignKey('content_type', 'object_id', for_concrete_model=False)
update = models.BooleanField(default=False)
parent_object_content_type = models.ForeignKey(ContentType)
parent_object_id = models.UUIDField(null=True, blank=True)
comment = models.TextField(blank=True)
task = models.ForeignKey(TaskMeta, related_name='aoi_upload',
null=True, blank=True)
Expand Down

0 comments on commit e2d6ca9

Please sign in to comment.