jsocol / django-adminplus

Easily add custom views to the Django admin.
BSD 3-Clause "New" or "Revised" License
592 stars 79 forks source link

How to change "Custom Views" title text in admin section. #51

Open chrisdew opened 8 years ago

chrisdew commented 8 years ago

Thanks for writing AdminPlus, it is working very well.

One small niggle is that it provides a section on the /admin/ titled "Custom Views" - How can I rename this title to "Reports"?

longtranista commented 8 years ago

You need to copy default installed templates file to [PROJECT]/templates/adminplus and change the "CUSTOM VIEWS" in index.html It should look like that: Project/ ..........templates/ ..................adminplus/ ..........................base.html ..........................index.html ( Change default text in this file)

sebitoelcheater commented 7 years ago

any solutions? @longtranista your solution didn't worked for me

crudie commented 6 years ago

Probably that's too late, but try to put your app in the INSTALLED_APPS list before the adminplus app, that will force Django to load your template first.

ghost commented 2 years ago

I would also like to see this feature. I want to be able to set it for each view. So I can have several "CUSTOM VIEWS" and be able to group up my custom admin views in to categories.

Like this:

@admin.site.register_view("decorated", name="Decorated", urlname="decorated_view", header="CUSTOM VIEWS 2")
class InlineReisterView(View):
    def get(self, request):
        return HttpResponse("lorem ipsum...")
Talkless commented 5 months ago

Ping @jsocol , #76 would be really convenient feature.