I have a simple model being displayed in the admin. In the add view I have 4 fields, with the first field being a foreign key to user. I need to:
- Pre-populate the user field.
- Make the field read only.
I cannot find any documentation on this. I looked at the following links:
- django admin "add page" initial datetime from GET parameters,
- Customize Django Admin: Add More Than One Default Inline on Parent Add_View
EDIT: I found a solution for my first problem here; Djanjo admin: Prefill data when clicking the add-another button next to a ForeignKey dropdown