diff options
Diffstat (limited to '')
-rw-r--r-- | ctrack/organisations/models.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ctrack/organisations/models.py b/ctrack/organisations/models.py index f602a35..e61bcb6 100644 --- a/ctrack/organisations/models.py +++ b/ctrack/organisations/models.py @@ -51,9 +51,16 @@ class Submode(models.Model): class Organisation(models.Model): + + DESIGNATION_TYPE = [ + (1, "Automatic"), + (2, "Reserve Power"), + ] + name = models.CharField(max_length=255) slug = AutoSlugField(populate_from=['name']) submode = models.ForeignKey(Submode, on_delete=models.CASCADE, blank=True, null=True) + designation_type = models.IntegerField(choices=DESIGNATION_TYPE, default=1) def get_absolute_url(self): return reverse("organisations:detail", kwargs={"slug": self.slug}) |