-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First working version of staff admin screens #2430
Conversation
Terraform plan for dev No changes. Your infrastructure matches the configuration.
✅ Plan applied in Deploy to Development and Management Environment #282 |
Terraform plan for meta No changes. Your infrastructure matches the configuration.
✅ Plan applied in Deploy to Development and Management Environment #282 |
Minimum allowed coverage is Generated by 🐒 cobertura-action against cee1190 |
@tadhg-ohiggins Could not find a simple way to change field display names in admin.py. Had to make the necessary changes in models.py. |
@JeanMarie-TTS this appears to work as a method in the admin class: def get_form(self, request, obj=None, **kwargs):
form = super().get_form(request, obj, **kwargs)
form.base_fields["report_id"].label = "new label for report_id"
return form |
@tadhg-ohiggins Will check this out. Thamls! |
PR checklist: submitters
main
into your branch shortly before creating the PR. (You should also be mergingmain
into your branch regularly during development.)PR checklist: reviewers
make docker-clean; make docker-first-run && docker compose up
; then rundocker compose exec web /bin/bash -c "python manage.py test"
The larger the PR, the stricter we should be about these points.
Design Outline
StaffUser
to keep a list of users with is_staff set to True in their User instanceStaffUser
. Log delete actions inStaffUserLog
backend/users/signals.py
StaffUsers
in the django admin screen. Add view privileges onSingleAuditChecklist
as well.admin
screens should be visible at <fac_url>/admin.