Monthly Archives: December 2011

django :: list_display can’t sort on attribute of foreign key field…

I’m not the only one surprised by the fact that you can’t use the double-underscore-foreignkey-attribute-accessor syntax in list_display: [python] class MyModelOptions(admin.ModelAdmin): list_display = [‘fk_field__fk_attribute’] # ILLEGAL [/python] There has been extensive discussions on the tracker (https://code.djangoproject.com/ticket/5863) and on the mailing … Continue reading

Posted in django | Tagged | 2 Comments