Hi folks
My app django-mptt has a function which dynamically adds a field to a model. A common use-case is hierarchical groups:
from mptt.models import TreeForeignKey, register
from django.contrib.auth.models import Group
TreeForeignKey(Group, blank=True, null=True).contribute_to_class(Group, 'parent')
register(Group)
This works great until Django 1.7. I've recently added 1.7 to the tox config and now I'm getting errors during the migration process:
django.db.utils.OperationalError: no such column: auth_group.parent_id
Seems the migration system isn't handling the monkey-patched field properly.
Does anyone know how to avoid this?
Cheers
Craig de Stigter