from django.conf.urls import url
from django.contrib.admin.views.decorators import staff_member_required

from winthrop.people.views import ViafAutoSuggest


urlpatterns = [
    url(r'^autocomplete/viaf/suggest/$', staff_member_required(ViafAutoSuggest.as_view()),
        name='autocomplete-suggest'),
]

from django.conf.urls import url
from django.contrib.admin.views.decorators import staff_member_required

from winthrop.people.views import ViafAutoSuggest


urlpatterns = [
    url(r'^autocomplete/viaf/suggest/$', staff_member_required(ViafAutoSuggest.as_view()),
        name='viaf-autosuggest'),
]

Make the url name for autosuggest clearer
Make the url name for autosuggest clearer

  from django.conf.urls import url
  from django.contrib.admin.views.decorators import staff_member_required
  
  from winthrop.people.views import ViafAutoSuggest
  
  
  urlpatterns = [
      url(r'^autocomplete/viaf/suggest/$', staff_member_required(ViafAutoSuggest.as_view()),
-         name='autocomplete-suggest'),
+         name='viaf-autosuggest'),
  ]
  
Make the url name for autosuggest clearer
## Code Before:
from django.conf.urls import url
from django.contrib.admin.views.decorators import staff_member_required

from winthrop.people.views import ViafAutoSuggest


urlpatterns = [
    url(r'^autocomplete/viaf/suggest/$', staff_member_required(ViafAutoSuggest.as_view()),
        name='autocomplete-suggest'),
]

## Instruction:
Make the url name for autosuggest clearer
## Code After:
from django.conf.urls import url
from django.contrib.admin.views.decorators import staff_member_required

from winthrop.people.views import ViafAutoSuggest


urlpatterns = [
    url(r'^autocomplete/viaf/suggest/$', staff_member_required(ViafAutoSuggest.as_view()),
        name='viaf-autosuggest'),
]
