Add csrf token to forms on main page#3387
Merged
johannaengland merged 1 commit intoUninett:masterfrom Jul 29, 2025
Merged
Conversation
ad5e5c9 to
ddc529f
Compare
|
lunkwill42
approved these changes
Jul 29, 2025
ddc529f to
e457f3c
Compare
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3387 +/- ##
==============================
==============================
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Contributes to https://github.com/Uninett/campus-tasks/issues/45.
Where to find the forms (ordered by commit):
Add widget form: Main page, click on "+" in sidebar and see form around every "Add" button
Import dashboard form: Main page, click on "+" in dashboard list and see form around "Import dashboard" link
Rename dashboard form: Main page, click on cog icon in sidebar and see form around input field and "Rename dashboard" button
Set default dashboard form: Main page, add/select a dashboard that is not default, click on cog icon in sidebar and see form around "Set as default dashboard" button
Delete dashboard form: Main page, add/select a dashboard that is not default, click on cog icon in sidebar and see form around "Delete dashboard" button
Add dashboard form: Main page, click on "+" in dashboard list and see form around input field and "Add dashboard" button
Widget report edit form: Main page, click on "+" in sidebar, add "Report" widget, go to edit
Feed reader edit form: Main page, click on "+" in sidebar, add "FeedReader" widget, go to edit
Machine tracker form: Main page, click on "+" in sidebar, add "Machine Tracker" widget
Vlan graph form: Main page, click on "+" in sidebar, add "Vlan Graph" widget
Sensor edit form: http://localhost/ipdevinfo/sensor/2360, click on "Add to dashboard", go to main page, go to edit (not working currently, bugfix: #3394)
Environment rack edit form: Main page, click on "+" in sidebar, add "Environment rack" widget, go to edit
PDU edit form: Main page, click on "+" in sidebar, add "PDU load" widget, go to edit
Room/location status edit form: Main page, click on "+" in sidebar, add "Rooms with active alerts"/"Locations with active alerts" widget, go to edit
UPS edit form: Main page, click on "+" in sidebar, add "UPS status" widget, go to edit
Status edit form: Main page, click on "+" in sidebar, add "Status" widget, go to edit
I feel like the last 6 commits or so could be replaced by using
flat_form, but I didn't get the reverse url withnavlet_idto work...