I have an abstract model NamedEntry. It has a field body_raw which contains the text as it was input by the user. The body field contains the converted (from markdown to html) cache for the body_raw field.
The body field should be hidden by default everywhere, on any form it might be used with. Is there something like body = models.TextField(blank=True, hidden=True)?
You can write your own Field, which will use widget with attribute
hidden, for example:And just replace
TextFieldtoHiddenTextFieldin your model(s)