bbd4d8d700
paperwork: Fix CertificationVersion is_latest/is_current when filtered
...
Ruff / ruff (push) Successful in 24s
Unsurprisingly, filtering breaks window functions. Subqueries are less
elegant, but actually work :)
2024-02-07 21:30:28 -05:00
27974e7de6
Enable/apply ruff's "pyupgrade" rules
2024-01-18 14:21:36 -05:00
02777265b0
Switch from Black to Ruff for formatting, add linting/import sorting
2024-01-18 14:21:36 -05:00
a50112c534
paperwork: Use window functions for CertificationVersion is_current/is_latest
...
This should be a lot more efficient, and is much cleaner code too
2023-12-01 13:07:17 -05:00
41d8ed691b
Move Member by user and Departments by shop lead lookups to models
2023-04-25 23:23:27 -04:00
7dfd7e36d1
paperwork: Add notes field for waivers
2023-04-10 21:37:18 -04:00
35f812d2c6
paperwork: Use default names for certification-related models
2023-04-10 14:59:16 -04:00
bb6577f3bb
paperwork: Improve typing for models and admin
2023-04-10 14:52:11 -04:00
58de45134a
paperwork: Disallow empty certification definition names
2023-04-10 13:41:36 -04:00
250c96f1c2
paperwork: Add Audits for Waivers and Certifications
2023-04-10 13:41:32 -04:00
1e4fc52531
Re-add ExpressionWrapper
to CertificationVersionManager
annotations
...
Not sure why I removed them, but things sure are broken without them
2023-04-01 01:07:17 -04:00
d247fc1616
Order Certification Versions by definition first
2023-03-30 12:27:51 -04:00
f01e4c72ab
paperwork: Fix is_latest/is_current to use correct ordering
2023-02-02 22:06:18 -05:00
4aaa1db3a8
paperwork: Add a view to show shop leads issued certifications in their shops
2023-02-02 21:38:19 -05:00
86000be17b
paperwork: Only return a list name for departments with the flag
2023-02-02 18:49:50 -05:00
bb0e5abad5
paperwork: Convert CertificationVersion is_current/latest to annotations
...
Pretty sigificantly improves performance of views that use it
2023-02-02 18:49:50 -05:00
d3eb890e89
paperwork: Store certification versions as semver in the database
2023-02-02 18:49:50 -05:00
7d84e38e1b
paperwork: Migrate to newer semver construction methods
2023-02-02 18:49:50 -05:00
3acfaaa19f
paperwork: Rename Department.list_moderator_flag to shop_lead_flag
2023-02-02 18:49:50 -05:00
fdfb557dd1
paperwork: Remove mailing_list
field from CertificationDefinition
2023-01-19 18:46:15 -05:00
74bbbb713e
paperwork: Allow exempting departments from having a mailing list
2023-01-19 18:46:15 -05:00
a54c2bf909
paperwork: Move department info to model with mailing list fields
2023-01-19 16:14:48 -05:00
48cad701e8
Implement some basic API access for paperwork and membershipworks
2022-12-25 01:21:30 -05:00
3c73e9fa46
[paperwork] Use semver to determine if if certs are latest or outdated
...
"Latest" = cert with the highest version number
"Current" = compatible version, so not latest, but still valid
"Outdated" = major version < major version of "latest"
2022-11-07 15:34:44 -05:00
5ea485abf0
[paperwork] Send admin cert emails to specific permission, not all staff
...
Closes #2
2022-03-11 15:43:57 -05:00
35f714760d
Add/apply black formatter
2022-02-11 23:50:46 -05:00
81d12f86a9
Add missing notes
field to Certifications
2022-02-04 17:14:17 -05:00
a586688653
Add Certification Version model, moving existing data to it
2022-02-04 16:30:52 -05:00
68a42b90ce
"Fix" foreign key to members table
...
Turning off the constraint here is probably not a good idea in the
long term, but it will work until I move tables around to make this sane
2022-02-03 16:17:33 -05:00
d34bff860a
Allow management of all paperwork models
2022-02-03 16:17:19 -05:00
4fb8aa74f0
Move Members model to new "membershipworks" app
2022-02-03 13:45:58 -05:00
c817ea8532
Change certification definition naming scheme and define ordering
2021-04-29 14:01:07 -04:00
819c32b915
Order members by first name, then last name
2021-04-29 13:50:49 -04:00
16eb034b03
Add Member table from membershipworks database
2021-03-23 17:11:58 -04:00
090bb9e07a
Initial Commit, basic models/admin pages for CMS_Database tables
2021-03-23 17:10:49 -04:00