mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-10 00:42:06 +00:00
Import django-selectable
This will also be used to do /admin/ autocompletes.
This commit is contained in:
10
dep/django-selectable/selectable/models.py
Normal file
10
dep/django-selectable/selectable/models.py
Normal file
@ -0,0 +1,10 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
# Set default settings
|
||||
if not hasattr(settings, 'SELECTABLE_MAX_LIMIT'):
|
||||
settings.SELECTABLE_MAX_LIMIT = 25
|
||||
|
||||
if not hasattr(settings, 'SELECTABLE_ESCAPED_KEYS'):
|
||||
settings.SELECTABLE_ESCAPED_KEYS = ('label', )
|
Reference in New Issue
Block a user