jedie / django-reversion-compare

Add compare view to django-reversion for comparing two versions of a reversion model.

Home Page:https://pypi.org/project/django-reversion-compare/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

version 0.7 only works if ADD_REVERSION_ADMIN = True

LegoStormtroopr opened this issue · comments

From here: https://github.com/jedie/django-reversion-compare/blob/master/reversion_compare/admin.py#L225

If ADD_REVERSION_ADMIN = False or not set, Version is never imported into admin.py and Reversion compare fails on line 166

I don't really want Reversions/Versions showing up in my admin page, so it should be possible to just move the import to the top of the module.

Wow. Interesting. The unittests will not catch this case :(
Think there is not really a easy was to test this, isn't it?