OpenEnergyPlatform / oeplatform

Repository for the code of the Open Energy Platform (OEP) website. The OEP provides an interface to the Open Energy Family
http://openenergyplatform.org/
GNU Affero General Public License v3.0
61 stars 19 forks source link

Prevent browser from showing cached factsheet pages after an edit-submit action. #1404

Closed jh-RLI closed 11 months ago

jh-RLI commented 11 months ago

Summary of the discussion

This bugfix includes an update to the modelview/views.py code. It declears the never cache decorator from django in the detail and edit views to prevent the browser from showing cached factsheet pages after an edit-submit action.

Note: This is not about the react based scenario-bundles (also called factsheet before). It is related to the modle and framework factsheets that have been implemented using django.

Type of change (CHANGELOG.md)

Updated

Workflow checklist

Automation

Closes #697

PR-Assignee

Reviewer

jh-RLI commented 11 months ago

This branch includes formatting changes. I just noticed that i have to edit the views.py again in another branch. As the changes are quite small i will merge then now without review to prevent merge conflicts :/