django-nested-inline
django-nested-inline copied to clipboard
FieldDoesNotExist exception moved in Django 3.1
trafficstars
Hi,
The FieldDoesNotExist exception used in admin.py on line 216 has moved in Django in version 3.1 (see https://docs.djangoproject.com/en/3.1/releases/3.1/)
The compatibility import of django.core.exceptions.FieldDoesNotExist in django.db.models.fields is removed
This causes issues for instance if NestedModelAdmin is used on filterable changelist, the filter is set and the Add button passes the _changelist_filters to the add_view method of admin.py. Instead of silently skipping the parameter, AttributeError is raised:
module 'django.db.models' has no attribute 'FieldDoesNotExist'.