Hi, I'm trying to make a list_display dynamically from other model. it looks like that: models:
class Headers(models.Model): name = models.IntegerField() active = models.BooleanField() class Table(models.Model): p1 = models.TextField(null=True, blank=True) p2 = models.TextField(null=True, blank=True) p3 = models.TextField(null=True, blank=True) admin: class TableAdmin(admin.ModelAdmin): list_display=[] for x in list(Headers.objects.filter(active=True)): list_display.insert(0, 'p%i' %x.name) and it's works great, but if I change something on Headers it doesn't change anything in TableAdmin.list_display until I restart the server. It is some kind of caching? I already tried to override save method of "Headers" model where I try to admin.site.unregister TableAdmin, build list_display and register it again with no luck. Please help me, how I can make it work? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.