4

I'm struggling to find a way to get multi-word app names to display properly in Django admin.

I've tried CamelCasing, hyphens and underscores, but in each case the app name just displays in admin exactly as it's named in the project. I've searched around for the answer but oddly can't seem to find one.

I'm sure I must be missing something obvious...

matt
  • 43
  • 5

2 Answers2

1

unfortunately, afik, django doesn't really support the notion of "verbose names" for apps. The admin just does app_name.title(). So to get want you want, some more trickery is needed. Haven't tried (never needed this) but this solution may just work.

second
  • 28,029
  • 7
  • 75
  • 76
  • Aha, thanks, I didn't think of anything as simple as a template filter. That looks like it would work nicely, although it would obviously be much neater if Django added something like verbose_name for apps! – matt Dec 08 '11 at 13:08
0

I know this thread is super old but it was the first one I came across when searching for this. There is a way to use verbose_name as you can find in the answer here:

Can you give a django app a verbose name for use through the admin

jAC
  • 3,155
  • 3
  • 18
  • 29