diff options
Diffstat (limited to '')
-rw-r--r-- | ctrack/organisations/models.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ctrack/organisations/models.py b/ctrack/organisations/models.py index 0738405..5493f06 100644 --- a/ctrack/organisations/models.py +++ b/ctrack/organisations/models.py @@ -61,9 +61,13 @@ class Organisation(models.Model): ] name = models.CharField(max_length=255) - slug = AutoSlugField(populate_from=['name']) - submode = models.ForeignKey(Submode, on_delete=models.CASCADE, blank=True, null=True) + 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) + registered_company_name = models.CharField(max_length=255, blank=True) + registered_company_number = models.CharField(max_length=100, blank=True) def get_absolute_url(self): return reverse("organisations:detail", kwargs={"slug": self.slug}) |