At the root page of the admin site where registered models appear, I want to hide several models that are registered to the Django admin.
If I directly unregister th
For Django 1.8 and above
Since Django 1.8, ModelAdmin has got a new method called has_module_permission() which is responsible for displaying a model in admin index.
To hide a model from admin index, just create this method in your ModelAdmin class and return False. Example:
class MyModelAdmin(admin.ModelAdmin):
...
def has_module_permission(self, request):
return False