开发者

Django - django-reversion - not working in inheritance

I have created a common class with it's admin class which should be inherited by all of my models. My common admin class inherited the VersionAdmin

from reversion.admin import VersionAdmin

class CommonAdmin(VersionAdmin):   
    pass

The prob开发者_运维问答lem is that, the model admins which inherited CommonAdmin is not showing the deleted model entries in "Recover Items". But If I didn't use inheritance, it works fine.


The following didn't run properly. It works fine now.

manage.py createinitialrevisions
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜