.
This commit is contained in:
+26
-1
@@ -9,7 +9,7 @@ from django.forms import (
|
||||
)
|
||||
from django.forms import inlineformset_factory
|
||||
|
||||
from atlas.models import Case, Differential, Series, SeriesImage, SeriesFinding, Condition
|
||||
from atlas.models import Case, Differential, Finding, Series, SeriesImage, SeriesFinding, Condition, Structure
|
||||
|
||||
from anatomy.models import Modality
|
||||
|
||||
@@ -33,6 +33,31 @@ class ConditionForm(ModelForm):
|
||||
"synonym": autocomplete.ModelSelect2Multiple(
|
||||
url="atlas:condition-autocomplete"
|
||||
),
|
||||
"parent": autocomplete.ModelSelect2Multiple(
|
||||
url="atlas:condition-autocomplete"
|
||||
),
|
||||
}
|
||||
|
||||
class FindingForm(ModelForm):
|
||||
class Meta:
|
||||
model = Finding
|
||||
exclude = []
|
||||
|
||||
widgets = {
|
||||
"synonym": autocomplete.ModelSelect2Multiple(
|
||||
url="atlas:finding-autocomplete"
|
||||
),
|
||||
}
|
||||
|
||||
class StructureForm(ModelForm):
|
||||
class Meta:
|
||||
model = Structure
|
||||
exclude = []
|
||||
|
||||
widgets = {
|
||||
"synonym": autocomplete.ModelSelect2Multiple(
|
||||
url="atlas:structure-autocomplete"
|
||||
),
|
||||
}
|
||||
|
||||
class SeriesFindingForm(ModelForm):
|
||||
|
||||
Reference in New Issue
Block a user