mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #23919 -- Removed python_2_unicode_compatible decorator usage
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
from django.apps.registry import Apps
|
||||
from django.db import models
|
||||
from django.utils import six
|
||||
from django.utils.encoding import python_2_unicode_compatible
|
||||
|
||||
|
||||
class CustomModelBase(models.base.ModelBase):
|
||||
@@ -12,7 +11,6 @@ class ModelWithCustomBase(six.with_metaclass(CustomModelBase, models.Model)):
|
||||
pass
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class UnicodeModel(models.Model):
|
||||
title = models.CharField('ÚÑÍ¢ÓÐÉ', max_length=20, default='“Ðjáñgó”')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user