.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.2.8 on 2021-11-25 22:32
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('atlas', '0004_auto_20211125_2216'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='condition',
|
||||
name='primary_name',
|
||||
field=models.BooleanField(default='True'),
|
||||
),
|
||||
]
|
||||
@@ -79,6 +79,8 @@ class Condition(models.Model):
|
||||
|
||||
synonym = models.ManyToManyField("self", blank=True)
|
||||
|
||||
primary_name = models.BooleanField(default="True")
|
||||
|
||||
def __str__(self) -> str:
|
||||
if self.synonym.count() == 0:
|
||||
return self.name
|
||||
|
||||
Reference in New Issue
Block a user