mirror of
https://github.com/Hopiu/django-select2.git
synced 2026-03-16 21:40:23 +00:00
Add Django 2.2 LTS support Drop Django 1.11 LTS support Add request argument to `ModelSelect2Mixin.filter_queryset`
20 lines
400 B
Python
20 lines
400 B
Python
"""
|
|
Django-Select2 URL configuration.
|
|
|
|
Add `django_select` to your ``urlconf`` **if** you use any 'Model' fields::
|
|
|
|
from django.urls import path
|
|
|
|
|
|
path('select2/', include('django_select2.urls')),
|
|
|
|
"""
|
|
from django.urls import path
|
|
|
|
from .views import AutoResponseView
|
|
|
|
app_name = 'django_select2'
|
|
|
|
urlpatterns = [
|
|
path("fields/auto.json", AutoResponseView.as_view(), name="auto-json"),
|
|
]
|