Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从管理员注销 django-evolution?
admin.site.unregister( something )
是admin.site的还有一个unregister()方法,你需要把你想注销的管理员的模型类传递给它!
admin.site
unregister()
from django_evolution.models import Version, Evolution admin.site.unregister(Version) admin.site.unregister(Evolution)
将它放在进化应用程序之后启动时加载的任何模块中,例如在进化后出现admin.py的应用程序中INSTALLED_APPS!
admin.py
INSTALLED_APPS