Fixed #21275 -- Migration serializer look for a deconstruct method on any object. #1783

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Member

loic commented Oct 20, 2013

No description provided.

django/utils/deconstruct.py
+
+ def deconstruct(obj):
+ """
+ Returns a 3-tuple of class import path (or just name if it lives
@timgraham

timgraham Oct 21, 2013

Owner

Is the comment about "or just name if it lives under django.db.migrations" accurate? If so, I'm not clear on how the logic for that works.

@loic

loic Oct 21, 2013

Member

Just a copy/paste I forgot to update, now fixed.

django/utils/deconstruct.py
+
+ def decorator(klass):
+ def __new__(cls, *args, **kwargs):
+ #print(cls)
Owner

timgraham commented Oct 21, 2013

merged in e565e13.

@timgraham timgraham closed this Oct 21, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment