Swingers’ custom admin classes.
A ModelAdmin class for the Region and District model types.
Enables lookup separators in the admin.list_display.
class SomeAdmin(RelatedFieldAdmin):
list_display = ['related__model__name', 'related__model']
should work without the usual:
def related__model__name(self, obj):
return obj.related.model.name
related__model__name.short_description = "<taken from name.title()>"
Note
Fixes/works around https://code.djangoproject.com/ticket/10743.
A ModelAdmin class that adds a detail view for an object. This includes a customized ChangeList class swingers.admin.views.DetailChangeList.