You could use editable=False
on your Model field as documented and here
If False, the field will not be displayed in the admin or any other
ModelForm. They are also skipped during model validation. Default is
True.
Note this works for ModelForms
and if you are using regular Form
you might consider extending it with custom implementation
ModelForm editable removal implementation source
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…