Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions composition/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,15 @@ def deferred_contribute_to_class(self, sender, **kwargs):
def introspect_class(self, cls):
pass

def deconstruct(self):
"""
Django Migration support (Django > 1.7), supersedes south_field_triple()
https://docs.djangoproject.com/en/1.8/howto/custom-model-fields/#custom-field-deconstruct-method
"""
name, path, args, kwargs = super(CompositionField, self).deconstruct()
path = self._c_native.__class__.__module__ + "." + self._c_native.__class__.__name__
return name, path, args, kwargs

def south_field_triple(self):
"""
Returns a suitable description of this field for South.
Expand Down