mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Refs #23919 -- Removed python_2_unicode_compatible decorator usage
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
from django.db import models
|
||||
from django.db.models.fields.related import ForwardManyToOneDescriptor
|
||||
from django.utils.encoding import python_2_unicode_compatible
|
||||
from django.utils.translation import get_language
|
||||
|
||||
|
||||
@@ -49,7 +48,6 @@ class ActiveTranslationFieldWithQ(ActiveTranslationField):
|
||||
return models.Q(lang=get_language())
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class Article(models.Model):
|
||||
active_translation = ActiveTranslationField(
|
||||
'ArticleTranslation',
|
||||
|
||||
Reference in New Issue
Block a user