- ID
- 0689faf1-1017-41d5-a221-83a96d1e9579
ENG-8296 Add custom attributes to user profile form
- tags :: People Attributes Jira
- source :: https://15five-dev.atlassian.net/browse/ENG-8296
- pull request :: https://github.com/15five/fifteen5/pull/27538
Django Form Revisited
- Turns out I hadn't used Django forms in a while! This was a lesson in how to
overload Django Forms A lot of custom logic has gone into the PR here.
- The trickiest part was trying to figure out how to validate the cleaned data.
It turns out you have to grab the prefix manually when you override an
inidivual field's `clean` method [[https://github.com/15five/fifteen5/pull/27538/commits/7b2fc1206f56375ccc71673a23ec5acfc6c4f011][per this commit]]