Override adding plural “s” in django admin

February 26th, 2010

If you have non-english names for your models, they will look bad when django admin tries to make plural out of them by adding “s” in the end. Fortunately it is easy to override by defining “verbose_name_plural” in your model. Here is an example:

1
2
3
4
5
6
class Tag(models.Model):
    class Meta:
        verbose_name_plural = "Tagovi"
 
    ime = models.CharField(max_length="300")
    opis = models.TextField(blank = True)
  • Devasia Joseph
    great post . thanks !!!! saved my day
blog comments powered by Disqus