Skip to content

Commit

Permalink
verbose names
Browse files Browse the repository at this point in the history
  • Loading branch information
longhotsummer committed Mar 7, 2024
1 parent d0676ba commit 2d4dd10
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions indigo_resolver/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ def __str__(self):


class AuthorityReference(models.Model):
""" Reference to a particular document,
belonging to a resolver.
""" Reference to a particular document, belonging to a resolver.
"""
frbr_uri = models.CharField(_("FRBR URI"), max_length=255, db_index=True, help_text=_("FRBR Work or Expression URI to match on"))
title = models.CharField(_("title"), max_length=255, help_text=_("Document title"))
Expand All @@ -63,6 +62,8 @@ class AuthorityReference(models.Model):

class Meta:
unique_together = ('authority', 'frbr_uri')
verbose_name = _("authority reference")
verbose_name_plural = _("authority references")

def authority_name(self):
if self.authority.url:
Expand Down

0 comments on commit 2d4dd10

Please sign in to comment.