Ticket #414 (closed defect: fixed)
Classes that inherit from django.contrib.contenttypes.generic.GenericRelation are not ignored
|Reported by:||jazzido@…||Owned by:||andrew|
django-objectpermissions (http://github.com/washingtontimes/django-objectpermissions) implements two classes (models.UserPermissionRelation and models.GroupPermissionRelation) that inherit from django.contrib.contenttypes.generic.GenericRelation.
South's modelsinspector ignores GenericRelation by default, but doesn't check if a field inherits from it causing an error in instrospection.
Here's a patch to include an introspection plugin for django-objectpermission (a quite popular Django app) to ignore models.UserPermissionRelation and models.GroupPermissionRelation.
More generally, modelsinspector.can_ignore could be modified to check a field's base class. I'm not sure if that'd be correct...