django-modeladmin-reorder icon indicating copy to clipboard operation
django-modeladmin-reorder copied to clipboard

Breadcrumbs are not renamed

Open r2src opened this issue 11 years ago • 2 comments

First of all, thanks for this great little project! It makes the django admin look a lot more logical to my users. However, I have noticed the following incorrect behavior:

After renaming apps and models using the {'label': 'New label'} syntax, the breadcrumbs shown in the top left corner of the django admin still have the original name. I'm using Python 3.4.2, Django 1.7, and django-modeladmin-reorder 0.1.2

r2src avatar Oct 21 '14 15:10 r2src

Thank You very much for your kind words. Really appreciate it.

It's going to be very difficult to to rename breadcrumb text using just a middleware. I mainly use this app for reordering apps, but I'll look into this as soon as I can.

In the mean time, if you figure out how to do this, pull requests are always welcome.

— Mishbah

mishbahr avatar Oct 21 '14 16:10 mishbahr

As of django 1.8, you can rename the app with AppConfig. Just drop the code below in the app init.py.

# coding:utf-8

from __future__ import unicode_literals
from django.apps import AppConfig


class MyAppConfig(AppConfig):
    name = 'school'
    verbose_name = "Escola"

default_app_config = 'school.MyAppConfig'

ulyssesv avatar Aug 12 '15 17:08 ulyssesv