Creation of Member is too complex to handle with a Django auto-generated form from model
On save this form should create user, create address and create member, make sure that code handles error on saving all of this models.
[ ] Add User required fields (username, password, email)
[ ] Add field first_name, last_name, social_id, gender
[ ] Use first_name, last_name and birth_date.year or an incremental integer to generate username on submit or via JavaScript
[ ] Use social_id to check gender validity on submit
[ ] Use social_id to fill other personal data fields (birth_place, birth_date)
[ ] Add checkbox for enabling editing in other personal data fields (birth_place, birth_date)
[ ] Add fields for documents
[ ] Add fields for Permanent Address (Indirizzo di Residenza)
Creation of Member is too complex to handle with a Django auto-generated form from model On save this form should create user, create address and create member, make sure that code handles error on saving all of this models.
username
,password
,email
)first_name
,last_name
,social_id
,gender
first_name
,last_name
andbirth_date.year
or an incremental integer to generateusername
on submit or via JavaScriptsocial_id
to checkgender
validity on submitsocial_id
to fill other personal data fields (birth_place
,birth_date
)birth_place
,birth_date
)