I\'m trying to make all fields readonly without listing them explicitly.
Something like:
class CustomAdmin(admin.ModelAdmin): def get_readonly_fi
@admin.register(Hero) class HeroAdmin(admin.ModelAdmin, ExportCsvMixin): ... readonly_fields = ["father", "mother", "spouse"]
reference : https://books.agiliq.com/projects/django-admin-cookbook/en/latest/changeview_readonly.html