PolicyStat/GitZen — pull request #13 by FriedRice (2012-06-26 15:25:45+00:00)
Title: gz-8: Convert User model to utilize user profiles and rewrite forms to use ModelForm and proper authentication

In this ticket, I completely rewrote both the user model and all of the forms in the application.

For the user model, instead of having it extend the User class, I rewrote it so that it utilizes user profiles which is django's recommended method of creating a custom user model.

Since I had to rewrite the forms to adjust to this new user model, I decided to convert all of the forms over to using ModelForm and django default forms at the same time. In the process of doing this, I ended up using the django default forms for authentication, creating a user, and changing a user password in addition to successfully using ModelForm for the forms that create and change the user profile. These new forms are much more readable and maintainable than the old ones.

Also, by using django default forms and ModelForm, all of the forms now have proper form authentication which avoids leaving the form page, so I was able to delete all of the files and code associated with my old improper method of form authentication.