views:

74

answers:

0

I have an application without any models, but with some custom admin actions. Now I want to add a custom admin view to support the custom admin actions. In order to make the use of the application easy I only want to use the actions attribute in the ModelAdmin's that need these actions.

The problem is: how do I add a custom view without using a custom AdminSite?

At the moment I try to make a AdminModel instance and override the get_urls() method. Then I register the AdminModel using a DummyModel with the managed attribute set to False. Unfortunately this doesn't work completely, because now I get a new section in the admin where I can add DummyModels and I don't want that.

Some time ago I saw someone doing this, without getting a section in the admin, so I know it's possible. I can't find back how to do this however.