Changes between Initial Version and Version 1 of Ticket #13233, comment 4
- Timestamp:
- Oct 27, 2011, 10:05:30 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #13233, comment 4
initial v1 1 1 I am getting the error posted in the ticket description as well. My use case is creating a UserProfile form which also has the 'username' field so that I can offer a single form to create/edit user-userprofile combinations. When creating, the username field should act normally. I do not want users to be able to change their username, so when editing I want to set the 'username' field to readonly. Doing this via readonly_fields or get_readonly_fields throws an error similar to the one in the ticket that 'username' is not a callable or attribute of the modeladmin and is not found on the model. 2 2 3 I am on the latest 1.3 release. 3 4 4 5 {{{