在我的模型管理员中,我想修改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
但是,它似乎永远不会被调用。我究竟做错了什么?
在我的模型管理员中,我想修改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
但是,它似乎永远不会被调用。我究竟做错了什么?