etianen/django-reversion — Issue #98: Hidden relationships
Author: AndrewHows
Created: 2011-10-24 23:25:24+00:00
State: open

I had a problem with django-reversion - when it was collecting it's follow data in admin.py:77, it was including internal relationships (those ending with a + character). Since these aren't handled as attributes like normal relationships, the "createinitialrevision" command failed with: 'Product' object has no attribute 'Product_tags+'

Adding:
if not inline_model._meta.get_field(fk_name).rel.is_hidden():
to admin.py:77 prevented the exception, but I'm not sure if django-reversion should actually be following these relationships.