SyntaxFix
Write A Post
Hire A Developer
Questions
I prefer this:
class CoolAdmin(admin.ModelAdmin): list_display = ('pk', 'submodel__field') @staticmethod def submodel__field(obj): return obj.submodel.field