.
This commit is contained in:
+3
-1
@@ -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",
|
||||
),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user