summaryrefslogtreecommitdiff
path: root/django/utils/deconstruct.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/utils/deconstruct.py')
-rw-r--r--django/utils/deconstruct.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/django/utils/deconstruct.py b/django/utils/deconstruct.py
index 6bc70f7e53..c546fc1dea 100644
--- a/django/utils/deconstruct.py
+++ b/django/utils/deconstruct.py
@@ -3,15 +3,13 @@ from importlib import import_module
from django.utils.version import get_docs_version
-def deconstructible(*args, **kwargs):
+def deconstructible(*args, path=None):
"""
Class decorator that allow the decorated class to be serialized
by the migrations subsystem.
Accepts an optional kwarg `path` to specify the import path.
"""
- path = kwargs.pop('path', None)
-
def decorator(klass):
def __new__(cls, *args, **kwargs):
# We capture the arguments to make returning them trivial
@@ -54,4 +52,4 @@ def deconstructible(*args, **kwargs):
if not args:
return decorator
- return decorator(*args, **kwargs)
+ return decorator(*args)