You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- A `Publication` is the central artifact. `Talk`, `Poster`, `Video` are related artifacts; the admin tip is to start from the Publication's edit page so shared fields (title, authors, date, venue) auto-fill on the children.
93
93
-`Person` ↔ `Project` via `ProjectRole` (with start/end dates). The `auto_close_project_roles` management command (run on every container start) closes expired roles.
94
94
-`Award` (separate from `Publication.award`) represents external recognitions; sectioned on the public Awards page by `AwardType`. Paper-level awards are NOT `Award` — they're on `Publication.award`. Keep this distinction in mind when modifying either.
95
+
-**Grant IDs come in two flavors (#1448) — don't conflate them.**`Grant.grant_id` is the *sponsor's* award ID (the NSF number); it is public and is serialized by the API. `Grant.uw_grant_id` (the UW/Workday grant worktag), `uw_award_number`, and `uw_award_name` are UW's *internal* administrative codes: never rendered publicly, deliberately absent from `GrantSerializer`'s field allowlist, and pinned that way by `test_api.py`. `GrantTrackingLink` holds admin-only bookmarks to the official UW CSE / UW Award Portal trackers, rendered atop the Grant changelist — they live in the DB, not in source, because the real URLs carry personal SharePoint sharing tokens and this repo is public. Grant is `view`-only for Editors (worktag lookup); `GrantAdmin.SUPERUSER_ONLY_FIELDS` hides funding amounts and proposal files from non-superusers.
95
96
- Many M2M relations use `SortedManyToManyField` (vendored `sortedm2m` widget) so display order is editor-controlled, not alphabetical.
# Makeability Lab Global Variables, including Makeability Lab version
90
-
ML_WEBSITE_VERSION="2.33.0"# Keep this updated with each release and also change the short description below
91
-
ML_WEBSITE_VERSION_DESCRIPTION="The database now writes a nightly pg_dump into its own volume, so the infrastructure team's snapshots always contain a consistent restore point. Backup health shows on this dashboard and /version.json (#1443)."
90
+
ML_WEBSITE_VERSION="2.34.0"# Keep this updated with each release and also change the short description below
91
+
ML_WEBSITE_VERSION_DESCRIPTION="Grants now record UW's internal tracking codes — the grant worktag, award number, and award name — and Editors can view grants read-only to look one up. Funding amounts, proposal files, and the links to the official UW trackers stay superuser-only (#1448)."
92
92
DATE_MAKEABILITYLAB_FORMED=datetime.date(2012, 1, 1) # Date Makeability Lab was formed
93
93
MAX_BANNERS=7# Maximum number of banners on a page
form.base_fields['forum_url'].help_text=f'The grant url (e.g., <a href="{grant_url}">{grant_url}</a>)'
161
+
tweak('forum_url',
162
+
label='Grant url',
163
+
help_text=f'The grant url (e.g., <a href="{grant_url}">{grant_url}</a>)')
164
+
165
+
# NB: 'grant_id' is disambiguated from 'UW Grant ID (worktag)' by a
166
+
# verbose_name on the model, not here — a label set on the form is
167
+
# ignored when Django renders the read-only view Editors get.
85
168
86
-
form.base_fields['pdf_file'].label='Grant PDF'
87
-
form.base_fields['pdf_file'].help_text='The rendered PDF of the grant. Internal only. This is not currently shown on the website.'
88
-
form.base_fields['raw_file'].help_text='The raw file (e.g., Word Docx, Overleaf Zip, etc.) for <b>archival</b> purposes. This is not shown on the website.'
169
+
tweak('pdf_file',
170
+
label='Grant PDF',
171
+
help_text='The rendered PDF of the grant. Internal only. This is not currently shown on the website.')
172
+
tweak('raw_file',
173
+
help_text='The raw file (e.g., Word Docx, Overleaf Zip, etc.) for <b>archival</b> purposes. This is not shown on the website.')
89
174
90
-
form.base_fields['projects'].help_text='Associate this grant with all the projects that it supports.'
175
+
tweak('projects',
176
+
help_text='Associate this grant with all the projects that it supports.')
0 commit comments