.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 3.2.8 on 2021-11-30 22:55
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('atlas', '0012_auto_20211130_2050'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RenameField(
|
||||
model_name='structure',
|
||||
old_name='structure',
|
||||
new_name='name',
|
||||
),
|
||||
]
|
||||
+1
-1
@@ -122,7 +122,7 @@ class Differential(models.Model):
|
||||
|
||||
|
||||
class Structure(SynMixin, models.Model):
|
||||
structure = models.CharField(max_length=255, unique=True)
|
||||
name = models.CharField(max_length=255, unique=True)
|
||||
|
||||
synonym = models.ManyToManyField("self", blank=True)
|
||||
|
||||
|
||||
+2
-2
@@ -90,12 +90,12 @@ urlpatterns = [
|
||||
),
|
||||
path(
|
||||
"finding-autocomplete",
|
||||
views.ConditionAutocomplete.as_view(model=Finding, create_field='finding'),
|
||||
views.FindingAutocomplete.as_view(model=Finding, create_field='finding'),
|
||||
name="finding-autocomplete",
|
||||
),
|
||||
path(
|
||||
"structure-autocomplete",
|
||||
views.ConditionAutocomplete.as_view(model=Structure, create_field='structure'),
|
||||
views.StructureAutocomplete.as_view(model=Structure, create_field='structure'),
|
||||
name="structure-autocomplete",
|
||||
),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user