Expand the signup form

Registered by Mathias Bøhn Grytemark

The current signup form only asks for username, email and password.
Users should have to provide enough information to fill both User (+first_name +last_name) and UserProfile (+gender +date_of_birth +streetaddress +postalcode +country)

We also need to check if users connecting through facebook provides all this information.

Blueprint information

Status:
Complete
Approver:
None
Priority:
High
Drafter:
Mathias Bøhn Grytemark
Direction:
Approved
Assignee:
Mathias Bøhn Grytemark
Definition:
Approved
Series goal:
Accepted for lancms2
Implementation:
Informational Informational
Milestone target:
None
Started by
Mathias Bøhn Grytemark
Completed by
Mathias Bøhn Grytemark

Related branches

Sprints

Whiteboard

http://stackoverflow.com/questions/12303478/how-to-customize-user-profile-when-using-django-allauth

[mboehn] I'm merging the branch now, the form works for signup. It even gives ok errors if you don't complete it. (Email seems to be optional. This is probably something in django-allauth that can be configured.)
[mboehn] Still need to present the form in some way to facebook users so we get the whole form filled out.
[mboehn] Should do something about the signup template. Doesn't look very bootstrapped as of now.
[mboehn] Activated SOCIALACCOUNT_AUTO_SIGNUP and facebook users are now redirected to the signup form when they log in for the first time. The form is populated by data from facebook if available and it matches field names.
[mboehn] I had to expand on the automatic initial setting fra django-allauth, I've done this in core.SignupForm.__init__() and it looks like something an experienced Python coder could have done ;-)
[mboehn] As of https://developers.facebook.com/blog/post/447/ (2011) facebook apps can't get phone number or address without some kind of magic that facebook seems to have forgotten to make public. Need to be on a whitelist of some kind and make contact with facebook for that.

(?)

Work Items

Work items:
[mboehn] Create Form: DONE
[mboehn] Save data from Form: DONE
[mboehn] Configure allauth to require email and verification on signup: DONE
[mboehn] Use form on facebook-users: DONE
[mboehn] Make profile show all available info: DONE
[mboehn] Bootstrap-ify signup template: DONE
[mboehn] Bootstrap-ify login template: DONE
[mboehn] Bootstrap-ify logout template: DONE
[mboehn] Bootstrap-ify SOCIAL-signup template: DONE
[mboehn] Test signup with NON-facebook user: DONE

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.