This commit is contained in:
Ross
2021-10-22 20:31:55 +01:00
parent 83f66116d8
commit 4b520edbe9
+3 -1
View File
@@ -1,4 +1,6 @@
from django.urls import path, include
from anatomy.models import Structure
from . import views
from django.views.decorators.cache import cache_page
@@ -149,7 +151,7 @@ urlpatterns = [
),
path(
"structure-autocomplete",
views.StructureAutocomplete.as_view(create_field='name'),
views.StructureAutocomplete.as_view(model=Structure, create_field='name'),
name="structure-autocomplete",
),
]