X-Git-Url: https://git.mdrn.pl/django-migdal.git/blobdiff_plain/0f9e09dcdab10f7baf944083b9bb85a4b04d9ba0..7140368:/migdal/models.py diff --git a/migdal/models.py b/migdal/models.py index 86f010c..75529d6 100644 --- a/migdal/models.py +++ b/migdal/models.py @@ -27,7 +27,7 @@ class Category(models.Model): verbose_name_plural = _('categories') def __unicode__(self): - return self.title + return self.title or u"" @models.permalink def get_absolute_url(self): @@ -60,6 +60,7 @@ class Entry(models.Model): in_stream = models.BooleanField(_('in stream'), default=True) categories = models.ManyToManyField(Category, null=True, blank=True, verbose_name=_('categories')) first_published_at = models.DateTimeField(_('published at'), null=True, blank=True) + canonical_url = models.URLField(_('canonical link'), null = True, blank = True) objects = models.Manager() published_objects = PublishedEntryManager()