From 647176b83d2316a8f68613adac18e579dac6e2b1 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Thu, 6 Aug 2020 15:09:05 -0400 Subject: updated to Django 3.1 --- app/lib/django_comments/abstracts.py | 2 +- app/lib/django_comments/models.py | 2 +- app/lib/pagination/templates/pagination/pagination.html | 2 +- app/lib/pagination/templatetags/pagination_tags.py | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'app/lib') diff --git a/app/lib/django_comments/abstracts.py b/app/lib/django_comments/abstracts.py index 4fbb94a..f4ff362 100644 --- a/app/lib/django_comments/abstracts.py +++ b/app/lib/django_comments/abstracts.py @@ -6,7 +6,7 @@ from django.contrib.contenttypes.models import ContentType from django.contrib.sites.models import Site from django.db import models from django.utils import timezone -from django.utils.encoding import python_2_unicode_compatible +from six import python_2_unicode_compatible from django.utils.translation import ugettext_lazy as _ try: from django.urls import reverse diff --git a/app/lib/django_comments/models.py b/app/lib/django_comments/models.py index ebf1bc5..204cf2e 100644 --- a/app/lib/django_comments/models.py +++ b/app/lib/django_comments/models.py @@ -1,7 +1,7 @@ +from six import python_2_unicode_compatible from django.conf import settings from django.db import models from django.utils import timezone -from django.utils.encoding import python_2_unicode_compatible from django.utils.translation import ugettext_lazy as _ from .abstracts import ( diff --git a/app/lib/pagination/templates/pagination/pagination.html b/app/lib/pagination/templates/pagination/pagination.html index e2f8e42..0a7f9a4 100644 --- a/app/lib/pagination/templates/pagination/pagination.html +++ b/app/lib/pagination/templates/pagination/pagination.html @@ -1,6 +1,6 @@ {% load pagination_tags %}{% if is_paginated %}