This commit is contained in:
Ross
2021-12-06 22:31:56 +00:00
parent b940d194dc
commit 3967740fb8
3 changed files with 35 additions and 0 deletions
+10
View File
@@ -130,6 +130,16 @@ class Condition(SynMixin, models.Model):
def get_absolute_url(self):
return reverse("atlas:condition_detail", kwargs={"pk": self.pk})
class Presentation(SynMixin, models.Model):
name = models.CharField(max_length=255, unique=True)
subspecialty = models.ManyToManyField("subspecialty", blank=True)
def __str__(self) -> str:
return self.name
def get_absolute_url(self):
return reverse("atlas:presentation_detail", kwargs={"pk": self.pk})
class Subspecialty(models.Model):
name = models.CharField(max_length=255)