From a38fec97a2bc7fd518643bc8c079ceef678db159 Mon Sep 17 00:00:00 2001 From: Ak4zh Date: Fri, 30 Oct 2020 12:21:05 +0530 Subject: [PATCH 1/2] fixed six ImportError with django 3+ --- cruds_adminlte/templatetags/crud_tags.py | 2 +- requirements.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cruds_adminlte/templatetags/crud_tags.py b/cruds_adminlte/templatetags/crud_tags.py index 79a34132..0b6e7ce9 100644 --- a/cruds_adminlte/templatetags/crud_tags.py +++ b/cruds_adminlte/templatetags/crud_tags.py @@ -8,9 +8,9 @@ from django.urls import (reverse, NoReverseMatch) # django2.0 from django.db import models -from django.utils import six from django.utils.html import escape from django.utils.safestring import mark_safe +import six register = template.Library() if hasattr(register, 'assignment_tag'): diff --git a/requirements.txt b/requirements.txt index aa7a6edf..0b90ecdb 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,3 +2,4 @@ django-select2==6.0.2 easy-thumbnails==2.5 django-crispy-forms==1.7.2 djangoajax==2.3.7 +six==1.15.0 From 78d8af1a32eddc6641cec1a6a0f6390cafd4d050 Mon Sep 17 00:00:00 2001 From: Ak4zh Date: Fri, 30 Oct 2020 13:29:51 +0530 Subject: [PATCH 2/2] updated django-crispy-forms --- requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 0b90ecdb..903cf21a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ django-select2==6.0.2 easy-thumbnails==2.5 -django-crispy-forms==1.7.2 +django-crispy-forms==1.9.2 djangoajax==2.3.7 -six==1.15.0 +six==1.15.0 \ No newline at end of file