mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Refs #23919 -- Removed python_2_unicode_compatible decorator usage
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
from django.db.utils import DatabaseError
|
||||
from django.utils.encoding import python_2_unicode_compatible
|
||||
|
||||
|
||||
class AmbiguityError(Exception):
|
||||
@@ -44,7 +43,6 @@ class IrreversibleError(RuntimeError):
|
||||
pass
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class NodeNotFoundError(LookupError):
|
||||
"""
|
||||
Raised when an attempt on a node is made that is not available in the graph.
|
||||
|
||||
@@ -6,7 +6,6 @@ from functools import total_ordering
|
||||
from django.db.migrations.state import ProjectState
|
||||
from django.utils import six
|
||||
from django.utils.datastructures import OrderedSet
|
||||
from django.utils.encoding import python_2_unicode_compatible
|
||||
|
||||
from .exceptions import CircularDependencyError, NodeNotFoundError
|
||||
|
||||
@@ -18,7 +17,6 @@ RECURSION_DEPTH_WARNING = (
|
||||
)
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
@total_ordering
|
||||
class Node(object):
|
||||
"""
|
||||
@@ -102,7 +100,6 @@ class DummyNode(Node):
|
||||
raise NodeNotFoundError(self.error_message, self.key, origin=self.origin)
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class MigrationGraph(object):
|
||||
"""
|
||||
Represents the digraph of all migrations in a project.
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
from django.db.transaction import atomic
|
||||
from django.utils.encoding import python_2_unicode_compatible
|
||||
|
||||
from .exceptions import IrreversibleError
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class Migration(object):
|
||||
"""
|
||||
The base class for all migrations.
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
from django.apps.registry import Apps
|
||||
from django.db import models
|
||||
from django.db.utils import DatabaseError
|
||||
from django.utils.encoding import python_2_unicode_compatible
|
||||
from django.utils.timezone import now
|
||||
|
||||
from .exceptions import MigrationSchemaMissing
|
||||
@@ -20,7 +19,6 @@ class MigrationRecorder(object):
|
||||
a row in the table always means a migration is applied.
|
||||
"""
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class Migration(models.Model):
|
||||
app = models.CharField(max_length=255)
|
||||
name = models.CharField(max_length=255)
|
||||
|
||||
Reference in New Issue
Block a user