1 # -*- coding: utf-8 -*-
2 # This file is part of PrawoKultury, licensed under GNU Affero GPLv3 or later.
3 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
5 from django.db import models
6 from django.utils.translation import ugettext_lazy as _
7 from migdal.helpers import add_translatable
10 class Event(models.Model):
11 date = models.DateTimeField(_('date'), max_length=255, db_index=True)
12 link = models.URLField(_('link'))
15 verbose_name = _('event')
16 verbose_name_plural = _('events')
19 add_translatable(Event, {
20 'title': models.CharField(_('title'), max_length=255),
21 'organizer': models.CharField(_('organizer'), max_length=255, db_index=True),
22 'place': models.CharField(_('place'), max_length=255),