diff options
Diffstat (limited to '')
-rw-r--r-- | ctrack/caf/models.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ctrack/caf/models.py b/ctrack/caf/models.py index bec59d6..78ebda7 100644 --- a/ctrack/caf/models.py +++ b/ctrack/caf/models.py @@ -2,6 +2,7 @@ from django.db import models from ctrack.caf.managers import ApplicableSystemManager from ctrack.organisations.models import Organisation, Person +from django.urls.base import reverse class Grading(models.Model): @@ -78,6 +79,10 @@ class CAF(models.Model): class Meta: verbose_name = "CAF" + + def get_absolute_url(self): + return reverse("caf:detail", kwargs={"pk": self.pk}) + def __str__(self): # Get the organisation and applicable system |