diff options
Diffstat (limited to '')
-rw-r--r-- | ctrack/caf/models.py | 3 | ||||
-rw-r--r-- | ctrack/caf/tests.py | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/ctrack/caf/models.py b/ctrack/caf/models.py index 5426fd9..14b2650 100644 --- a/ctrack/caf/models.py +++ b/ctrack/caf/models.py @@ -19,6 +19,7 @@ class Ranking(models.Model): description = models.TextField(max_length=250) type = models.IntegerField(choices=RANKING_TYPE, default=1) + def __str__(self): return self.descriptor @@ -75,7 +76,7 @@ class EssentialService(models.Model): verbose_name = "Essential Service" def __str__(self): - return self.name + return f"{self.organisation.name} | {self.name}" class CAF(models.Model): diff --git a/ctrack/caf/tests.py b/ctrack/caf/tests.py deleted file mode 100644 index 4d66077..0000000 --- a/ctrack/caf/tests.py +++ /dev/null @@ -1,3 +0,0 @@ -#from django.test import TestCase - -# Create your tests here. |