malak jameel
malak jameel

Reputation: 127

How i can Change the default table name in the admin interface in django

enter image description here

I need to change the newss to another name
how i can do this ؟

Upvotes: 7

Views: 6912

Answers (2)

Ken
Ken

Reputation: 1404

Like this:

class News(models.Model):
    ......

    class Meta:
        verbose_name_plural = "News"

Then it will display "News" instead of "Newss"

Upvotes: 15

Dima  Kudosh
Dima Kudosh

Reputation: 7376

You must specify custom verbose_name and verbose_name_plural in your Meta class for News model.

Upvotes: 10

Related Questions