Skip to content

Commit

Permalink
feature: flushing the request.session when entering the db results ov…
Browse files Browse the repository at this point in the history
…erview
  • Loading branch information
thangixd committed May 23, 2024
1 parent def29f8 commit 8fe26d6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tracex_project/db_results/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ class DbResultsOverviewView(TemplateView):

template_name = "db_results_overview.html"

def get_context_data(self, **kwargs):
"""Retrieve and return the base context data for the view, flushing the session data."""
context = super().get_context_data(**kwargs)
self.request.session.flush()

return context


class MetricsOverviewView(FormView):
"""View for selecting a patient journey for showing metrics."""
Expand Down

0 comments on commit 8fe26d6

Please sign in to comment.