UMSRA has temporarily decided to stop tracking the family trees of mythological entities. You have been asked to make the
father
, mother
and spouse
fields readonly.
You can do this by:
@admin.register(Hero)
class HeroAdmin(admin.ModelAdmin, ExportCsvMixin):
...
readonly_fields = ["father", "mother", "spouse"]
Your create form looks like this:

No comments:
Post a Comment