Skip to content

Commit

Permalink
Merge pull request #2516 from GSA-TTS/main
Browse files Browse the repository at this point in the history
2023-10-16 main -> prod
  • Loading branch information
danswick authored Oct 16, 2023
2 parents db0e9cb + 405b184 commit f822e12
Show file tree
Hide file tree
Showing 207 changed files with 334,746 additions and 2,840 deletions.
1 change: 1 addition & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
- [ ] List any special steps reviewers have to follow to test the PR. For example, adding a local environment variable, creating a local test file, etc.
- [ ] For extra credit, submit a screen recording like [this one](https://github.com/GSA-TTS/FAC/pull/1821).
- [ ] Make sure you’ve merged `main` into your branch shortly before creating the PR. (You should also be merging `main` into your branch regularly during development.)
- [ ] Make sure you’ve accounted for any migrations. When you’re about to create the PR, bring up the application locally and then run `git status | grep migrations`. If there are any results, you probably need to add them to the branch for the PR. Your PR should have only **one** new migration file for each of the component apps, except in rare circumstances; you may need to delete some and re-run `python manage.py makemigrations` to reduce the number to one. (Also, unless in exceptional circumstances, your PR should not delete any migration files.)
- [ ] Make sure that whatever feature you’re adding has tests that cover the feature. This includes test coverage to make sure that the previous workflow still works, if applicable.
- [ ] Do manual testing locally. Our tests are not good enough yet to allow us to skip this step. If that’s not applicable for some reason, check this box.
- [ ] Verify that no Git surgery was necessary, or, if it was necessary at any point, repeat the testing after it’s finished.
Expand Down
26 changes: 25 additions & 1 deletion backend/audit/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,31 @@


class SACAdmin(admin.ModelAdmin):
list_display = ("id", "report_id")
def has_module_permission(self, request, obj=None):
return request.user.is_staff

def has_view_permission(self, request, obj=None):
return request.user.is_staff

list_display = (
"id",
"report_id",
"cognizant_agency",
"oversight_agency",
)
list_filter = [
"cognizant_agency",
"oversight_agency",
]

fields = (
"report_id",
(
"cognizant_agency",
"oversight_agency",
),
"general_information",
)


class AccessAdmin(admin.ModelAdmin):
Expand Down
Loading

0 comments on commit f822e12

Please sign in to comment.