Adds the Executive Member model. Also includes small changes like:
Scope the GENDERS list to the User model.
Update the max length for phone number to 15 and add validator/pre-save sanitization of phone number.
Copy the SIG model definition from #68 . Required for Executive Member dependency. SIG Pages will still be tracked in #68 .
Small style fixes on login and index pages, mainly for better readability.
Run pre commit hooks on all relevant files
Fixes #45
Dependencies
N/A
Type of Change
What types of changes does your code introduce?
Put an x in the boxes that apply
[x] New feature (non-breaking change which adds functionality)
[x] Bug fix (non-breaking change which fixes an issue)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration. (for bug fix / breaking change)
Put an x in the boxes that apply
[x] Tested applying migrations onto existing changes on main. Didn't break any data.
Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.
[x] My code follows the style guidelines of this project
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
Description
Adds the Executive Member model. Also includes small changes like:
GENDERS
list to the User model.Fixes #45
Dependencies
N/A
Type of Change
What types of changes does your code introduce? Put an
x
in the boxes that applyHow Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration. (for bug fix / breaking change) Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.