[Answered ]-Django admin foreign key field cause performance issue

2👍

This should do the trick

@admin.register(Solution)
class SolutionAdmin(admin.ModelAdmin):
    readonly_fields = ('question',)
    def get_ori_q(self, obj):
        se = obj.question
        return se.question

Leave a comment