From ec89796299dc2f875f415864c98bdfcc6d0d76df Mon Sep 17 00:00:00 2001 From: gantonayde <64661854+gantonayde@users.noreply.github.com> Date: Tue, 11 Aug 2020 23:14:54 +0100 Subject: [PATCH 1/2] django-mptt 0.11 needed for Django 3.1 In Django 3.1 the compatibility import of django.core.exceptions.FieldDoesNotExist in django.db.models.fields is removed. django-mptt should be the latest version (0.11 as of now) --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index c8f4509..0d767c5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -django-mptt>=0.9.0,<0.11 +django-mptt==0.11.0 unicode-slugify==0.1.3 From 833789891b811fc66ce5ad3fbbbfe07d41417320 Mon Sep 17 00:00:00 2001 From: gantonayde <64661854+gantonayde@users.noreply.github.com> Date: Tue, 11 Aug 2020 23:16:58 +0100 Subject: [PATCH 2/2] Add support for Django 3.1 In Django 3.1 the compatibility import of django.core.exceptions.FieldDoesNotExist in django.db.models.fields is removed. So we'd have to update the package by replacing: from django.db.models.fields import FieldDoesNotExist with from django.core.exceptions import FieldDoesNotExist --- categories/registration.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/categories/registration.py b/categories/registration.py index a4d6eb1..e26bb12 100644 --- a/categories/registration.py +++ b/categories/registration.py @@ -1,7 +1,8 @@ """ These functions handle the adding of fields to other models """ -from django.db.models import FieldDoesNotExist, ForeignKey, ManyToManyField, CASCADE +from django.db.models import ForeignKey, ManyToManyField, CASCADE +from django.core.exceptions import FieldDoesNotExist from . import fields # from settings import self._field_registry, self._model_registry from django.utils.translation import ugettext_lazy as _