Skip to content

Commit

Permalink
eventrelation object_id changed
Browse files Browse the repository at this point in the history
  • Loading branch information
rodolphopivetta committed May 29, 2016
1 parent 1c78487 commit ab14575
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schedule/models/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ class EventRelation(with_metaclass(ModelBase, *get_model_bases())):
'''
event = models.ForeignKey(Event, verbose_name=_("event"))
content_type = models.ForeignKey(ContentType)
object_id = models.IntegerField()
object_id = models.CharField(max_length=32)
content_object = fields.GenericForeignKey('content_type', 'object_id')
distinction = models.CharField(_("distinction"), max_length=20, null=True)

Expand Down

0 comments on commit ab14575

Please sign in to comment.