Aggiunta una try except su import di una funzione di django deprecata
parent
dc16fa3ccf
commit
38f7655bc9
|
|
@ -11,7 +11,11 @@ from django.db.models.fields.related_descriptors import (
|
|||
ManyToManyDescriptor,
|
||||
ReverseManyToOneDescriptor,
|
||||
)
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
# https://docs.djangoproject.com/en/4.0/releases/3.0/#miscellaneous-1
|
||||
try:
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
except ImportError:
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
CURRENT_PYTHON = sys.version_info[:2]
|
||||
REQUIRED_PYTHON_FOR_FSTRING = (3, 6)
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -9,7 +9,7 @@ with open(os.path.join(CURRENT_WORKING_DIRECTORY, 'README.md')) as fp:
|
|||
|
||||
setup(
|
||||
name='django-admin-autocomplete-list-filter',
|
||||
version='0.2.3+briq',
|
||||
version='0.2.3+briq1',
|
||||
description='Ajax autocomplete list filter for Django admin',
|
||||
long_description=README,
|
||||
long_description_content_type='text/markdown',
|
||||
|
|
|
|||
Loading…
Reference in New Issue