Skip to content

Commit

Permalink
Adding verbose name to ComputingFacility model. Adds string return ty…
Browse files Browse the repository at this point in the history
…pe. Fixes #64 and fixes #38
  • Loading branch information
joncison committed Aug 12, 2020
1 parent 3f8deb4 commit 7f46478
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ifbcatsandbox_api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,3 +753,10 @@ class AccessibillityType(models.TextChoices):
help_text="Number of users served by the computing facility in the last year.",
validators=[MinValueValidator(1),],
)

class Meta:
verbose_name_plural = "Computing facilities"

def __str__(self):
"""Return the ComputingFacility model as a string."""
return self.name

0 comments on commit 7f46478

Please sign in to comment.