This pull request adds admin functionality as well as user signup functionality.
To test:
You will need a superuser account to log in to admin portal.
git fetch adminapp-viewsgit checkout adminapp-viewspython manage.py migratepython manage.py loaddata states counties user_typespython manage.py runserver
Since this PR extends the user model heavily, you will either need to add defaults to each user when migrating or start fresh with no users.
Endpoints:
adminapp/login - to log in either as admin or user
adminportal/user_list - list of users to approve, only superuser can access
adminapp/user_detail/{id} - user profile page, only logged in user or superuser can access
Profile forms should only be accessed via adminapp/profile_signup, as the form needs the user type to follow correct path.
This pull request adds admin functionality as well as user signup functionality.
To test: You will need a superuser account to log in to admin portal.
git fetch adminapp-views
git checkout adminapp-views
python manage.py migrate
python manage.py loaddata states counties user_types
python manage.py runserver
Since this PR extends the user model heavily, you will either need to add defaults to each user when migrating or start fresh with no users.
Endpoints: