Search code examples
djangodjango-admindjango-admin-filtersdjango-admin-tools

get_list_display in Django


In my model admin, I would like to modify get_list_display.

class PhotoAdmin(admin.ModelAdmin):

      ordering = ['-date']

      def get_list_display(self, request):
           b[0] #<-just to crash it to see if it is getting called

However, it seems to not ever be getting called. What am I doing wrong?


Solution

  • get_list_display is only available since 1.4, maybe you are using an older version?