In a Django form, how do I make a field readonly (or disabled) so that it cannot be edited?
As pointed out in this answer, Django 1.9 added the Field.disabled attribute: The disabled boolean argument, when set to True, disables a form field using the disabled HTML attribute so that it won’t be editable by users. Even if a user tampers with the field’s value submitted to the server, it will be ignored in … Read more