开发者

Django - django-reversion - not working in inheritance

开发者 https://www.devze.com 2023-01-24 19:07 出处:网络
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

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

精彩评论

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

关注公众号