Django3 has removed python_2_unicode_compatible.

Execute the codemodes on this file and removed all usage.
This commit is contained in:
Awais Qureshi
2021-07-15 00:33:45 +05:00
parent f98b8e5be0
commit 2ed834a36a
2 changed files with 1 additions and 8 deletions

View File

@@ -8,7 +8,7 @@ from django.db import models
from django.db.models.signals import post_init, post_save
from django.dispatch import Signal, receiver
from django.utils import timezone
from django.utils.encoding import python_2_unicode_compatible
from django.utils.translation import ugettext_lazy as _
# A signal that will be sent when users should be added or removed from the creator group
@@ -19,9 +19,6 @@ send_admin_notification = Signal(providing_args=["user"])
# A signal that will be sent when user should be notified of change in course creator privileges
send_user_notification = Signal(providing_args=["user", "state"])
@python_2_unicode_compatible
class CourseCreator(models.Model):
"""
Creates the database table model.

View File

@@ -4,10 +4,7 @@ Django Model for tags
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
@python_2_unicode_compatible
class TagCategories(models.Model):
"""
This model represents tag categories.
@@ -33,7 +30,6 @@ class TagCategories(models.Model):
return [t.value for t in TagAvailableValues.objects.filter(category=self)]
@python_2_unicode_compatible
class TagAvailableValues(models.Model):
"""
This model represents available values for tags.