feat(models): add description field to Suffix model

Introduced a description field to the Suffix model to allow for additional information to be recorded. This enhances the granularity and informativeness of the stored data, especially useful for documentation and clarification purposes.
This commit is contained in:
Kumi 2024-06-23 09:40:18 +02:00
parent f4575ec759
commit fd2962cbd5
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

@ -42,6 +42,7 @@ class Suffix(models.Model):
suffix = models.CharField(max_length=100) suffix = models.CharField(max_length=100)
prefix = models.ForeignKey(Prefix, on_delete=models.PROTECT) prefix = models.ForeignKey(Prefix, on_delete=models.PROTECT)
owner = models.ForeignKey(User, on_delete=models.CASCADE) owner = models.ForeignKey(User, on_delete=models.CASCADE)
description = models.TextField(blank=True)
approved = models.BooleanField(default=False) approved = models.BooleanField(default=False)
type = models.CharField(max_length=6, choices=SUFFIX_TYPES) type = models.CharField(max_length=6, choices=SUFFIX_TYPES)
remote_resolver = models.URLField(blank=True, null=True) remote_resolver = models.URLField(blank=True, null=True)