You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As in the Django 3.1 release notes is stated: "The compatibility import of django.core.exceptions.FieldDoesNotExist in django.db.models.fields is removed."
A possible fix for this is to import from django.core import exceptions and replace the following except (AttributeError, models.FieldDoesNotExist): with except (AttributeError, exceptions.FieldDoesNotExist):
The text was updated successfully, but these errors were encountered:
The following line of code will cause issues in Django 3.1 and later:
aldryn-search/aldryn_search/utils.py
Line 125 in a62715a
As in the Django 3.1 release notes is stated: "The compatibility import of django.core.exceptions.FieldDoesNotExist in django.db.models.fields is removed."
A possible fix for this is to import
from django.core import exceptions
and replace the followingexcept (AttributeError, models.FieldDoesNotExist):
withexcept (AttributeError, exceptions.FieldDoesNotExist):
The text was updated successfully, but these errors were encountered: