Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Breadcrumbs are not renamed #1

Open
r2src opened this issue Oct 21, 2014 · 2 comments
Open

Breadcrumbs are not renamed #1

r2src opened this issue Oct 21, 2014 · 2 comments

Comments

@r2src
Copy link

r2src commented Oct 21, 2014

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

@mishbahr
Copy link
Owner

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

@ulyssesv
Copy link

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'

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants