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 problem 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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.