Skip to content

Conversation

@KatieB5
Copy link
Contributor

@KatieB5 KatieB5 commented Jan 23, 2026

Addresses the third action in #5473 .

Work done:

  • Create a Django view for creating new projects, restricted to users with the PROJECT_CREATE permission
  • Link the "Create a Project" button on the Staff Area Projects page, to the new view

Testing:

  • Unit tests to check permission-restricted access to the new view
  • Ran just test-ci (all tests passed)
  • Ran just run, navigated to http://localhost:8000/staff/projects/create/ with and without the ServiceAdministrator role assigned

Note: This PR is stacked on #5552.

Add a `ProjectCreate(CreateView)` and URL, accessible only to
users with the `PROJECT_CREATE` permission.

`fields = []` is provided to satisfy `CreateView`’s requirement for a
form definition, without specifying any actual form fields. This
allows the the view to render without the form. We haven't yet decided how we want to implement the ProjectCreate form; this work will be done in a separate PR.

A stub template is also included to allow the view to render successfully,
without committing to form or UI decisions yet.
Update the “Create a Project” button on the Staff Area Projects page
to link to the new ProjectCreate view.
@KatieB5 KatieB5 marked this pull request as ready for review January 26, 2026 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants