The Great Magnet. What a fool I was to defy him.

Django — Django Admin Model Name Override / Verbose Name

September 14, 2009 · Leave a Comment

Since so much admin functionality has moved to AdminSite, I couldn’t find the answer to this very easily on google searches.

Turns out the names the admin site uses to display model names is still defined in the models.Model class.

Add class Meta:
verbose_name = “blah”
verbose_name_plural = “blahs”

to avoid names like Entrys.

Sure it’s model specific, but given the option to create multiple AdminSite instances these things now become AdminSite specific.

Categories: Life

0 responses so far ↓

  • There are no comments yet...Kick things off by filling out the form below.

Leave a Comment