Files
postgres-web/dep/django-selectable/selectable/urls.py
Magnus Hagander a6d3b44038 Import django-selectable
This will also be used to do /admin/ autocompletes.
2016-06-23 17:59:45 +02:00

16 lines
343 B
Python

from django.conf.urls import url
from . import views
from .compat import LEGACY_AUTO_DISCOVER
if LEGACY_AUTO_DISCOVER:
# Auto-discovery is now handled by the app configuration
from . import registry
registry.autodiscover()
urlpatterns = [
url(r'^(?P<lookup_name>[-\w]+)/$', views.get_lookup, name="selectable-lookup"),
]