X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/357027375ff8867f42ca34bcbfb5a78b5b185fc3..08807589ed804cc432567ebdf116bfedbbc47be3:/src/libraries/models.py diff --git a/src/libraries/models.py b/src/libraries/models.py index c83afbbba..588620f1e 100644 --- a/src/libraries/models.py +++ b/src/libraries/models.py @@ -21,16 +21,16 @@ class Catalog(models.Model): @models.permalink def get_absolute_url(self): - return ('libraries_catalog_view', [self.slug]) + return 'libraries_catalog_view', [self.slug] class Library(models.Model): """Represent a single library in the libraries dictionary""" - name = models.CharField(_('name'), max_length=120, blank=True) - slug = models.SlugField(_('slug'), max_length=120, unique=True, db_index=True, null=True) + name = models.CharField(_('name'), max_length=120, blank=True) + slug = models.SlugField(_('slug'), max_length=120, unique=True, db_index=True, null=True) catalog = models.ForeignKey(Catalog, null=False, related_name='libraries', on_delete=models.PROTECT) - url = models.CharField(_('url'), max_length=120, blank=True) + url = models.CharField(_('url'), max_length=120, blank=True) description = models.TextField(_('description'), blank=True) class Meta: