.
This commit is contained in:
@@ -201,6 +201,9 @@ class Condition(SynMixin, models.Model):
|
||||
def get_parents(self):
|
||||
return self.parent.all()
|
||||
|
||||
def get_with_subspecialty(self):
|
||||
return f"{', '.join([str(i) for i in self.subspecialty.all()])} / {self.name} "
|
||||
|
||||
|
||||
class ConditionRelationship(models.Model):
|
||||
child = models.ForeignKey(Condition, on_delete=models.CASCADE)
|
||||
|
||||
Reference in New Issue
Block a user