\r
@models.permalink\r
def get_absolute_url(self):\r
- return ('libraries_catalog_view', [self.slug])\r
+ return 'libraries_catalog_view', [self.slug]\r
\r
\r
class Library(models.Model):\r
"""Represent a single library in the libraries dictionary"""\r
\r
- 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)\r
+ slug = models.SlugField(_('slug'), max_length=120, unique=True, db_index=True, null=True)\r
catalog = models.ForeignKey(Catalog, null=False, related_name='libraries', on_delete=models.PROTECT)\r
- url = models.CharField(_('url'), max_length=120, blank=True)
+ url = models.CharField(_('url'), max_length=120, blank=True)\r
description = models.TextField(_('description'), blank=True)\r
\r
class Meta:\r