From 529d920ed17c6975dbbfef670b7e12263774eb6b Mon Sep 17 00:00:00 2001 From: codefather Date: Sun, 10 Jan 2021 16:58:02 +0300 Subject: [PATCH] ready for django 3.0+ --- jet/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jet/models.py b/jet/models.py index 8fe97564..90e2cd3b 100644 --- a/jet/models.py +++ b/jet/models.py @@ -1,10 +1,10 @@ from django.db import models from django.utils import timezone -from django.utils.encoding import python_2_unicode_compatible +# from django.utils.encoding import python_2_unicode_compatible from django.utils.translation import ugettext_lazy as _ -@python_2_unicode_compatible +# @python_2_unicode_compatible class Bookmark(models.Model): url = models.URLField(verbose_name=_('URL')) title = models.CharField(verbose_name=_('title'), max_length=255) @@ -20,7 +20,7 @@ def __str__(self): return self.title -@python_2_unicode_compatible +# @python_2_unicode_compatible class PinnedApplication(models.Model): app_label = models.CharField(verbose_name=_('application name'), max_length=255) user = models.PositiveIntegerField(verbose_name=_('user'))