Hi, I need to display number of objects at main django site admin page. For example, in list of models I need to display Elephants (6) instead of Elephants I added this code to my model:
class Elephant(models.Model): .... class Meta: verbose_name_plural = 'Elephant ' + '(' + unicode(count_elephants()) + u')' where count_elephants() calculates number of objects. The problem is that verbose_name_plural is calculated at server start and is not called when I delete/insert objects, so this calculated value becomes irrelevant. Is it possible to do it in correct way? Thanks! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.