X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/44090c986d9a16f6913047c25319c446bb9308ad..862ec22b61f67286e5d09b03ca49eb23974d3e0f:/events/models.py?ds=inline diff --git a/events/models.py b/events/models.py index 742c2f2..9c216af 100644 --- a/events/models.py +++ b/events/models.py @@ -16,6 +16,10 @@ class Event(models.Model): verbose_name_plural = _('events') ordering = ['date'] + def __unicode__(self): + return self.title + + add_translatable(Event, { 'title': models.CharField(_('title'), max_length=255), 'organizer': models.CharField(_('organizer'), max_length=255, db_index=True),