Tim, thanks for your help! Also, I've found another solution for this problem: http://stackoverflow.com/questions/6241906/display-number-of-instances-for-each-model-in-djangos-admin-index
On 5 июн, 16:50, Tim Shaffer <timshaf...@me.com> wrote: > You could probably do it using a signal. Every time a record is created or > deleted, you can update the verbose_name_plural with the current count. > > from django.db.models.signals import post_save, post_delete > > def update_verbose_name(sender, **kwargs): > Elephant._meta.verbose_name_plural = 'elephants (%s)' % Elephant() > > post_delete.connect(update_verbose_name, sender=Elephant) > post_save.connect(update_verbose_name, sender=Elephant) -- 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.