From fdf52fb15cb594f8717b852c33a292149a21b8b8 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 25 Feb 2020 07:10:34 +0000 Subject: tiding --- ctrack/caf/models.py | 3 ++- ctrack/caf/tests.py | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) delete mode 100644 ctrack/caf/tests.py (limited to 'ctrack/caf') 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. -- cgit v1.2.3