This commit is contained in:
Ross
2024-10-09 21:40:46 +01:00
parent 436a04e8dd
commit f4c82f45f5
12 changed files with 332 additions and 98 deletions
+9 -1
View File
@@ -37,6 +37,8 @@ class Formats(models.Model):
inherits = models.ForeignKey('self', on_delete=models.CASCADE, null=True, blank=True)
specialties = models.ManyToManyField('Specialty', blank=True)
def __str__(self):
return self.name
@@ -58,4 +60,10 @@ class Formats(models.Model):
formats.append(self.format)
formats.reverse()
return "\n".join(formats)
return "\n".join(formats)
class Specialty(models.Model):
name = models.CharField(max_length=200)
def __str__(self):
return self.name