X-Git-Url: https://git.mdrn.pl/prawokultury.git/blobdiff_plain/44090c986d9a16f6913047c25319c446bb9308ad..522b9cc723548746eed1aea99905618e693f96e0:/events/models.py diff --git a/events/models.py b/events/models.py deleted file mode 100644 index 742c2f2..0000000 --- a/events/models.py +++ /dev/null @@ -1,23 +0,0 @@ -# -*- coding: utf-8 -*- -# This file is part of PrawoKultury, licensed under GNU Affero GPLv3 or later. -# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. -# -from django.db import models -from django.utils.translation import ugettext_lazy as _ -from migdal.helpers import add_translatable - - -class Event(models.Model): - date = models.DateTimeField(_('date'), max_length=255, db_index=True) - link = models.URLField(_('link')) - - class Meta: - verbose_name = _('event') - verbose_name_plural = _('events') - ordering = ['date'] - -add_translatable(Event, { - 'title': models.CharField(_('title'), max_length=255), - 'organizer': models.CharField(_('organizer'), max_length=255, db_index=True), - 'place': models.CharField(_('place'), max_length=255), -})