Skip to content

Commit

Permalink
Fix two regressions on calculatrice loyers and /operations (#1446)
Browse files Browse the repository at this point in the history
* Fix calculatrice loyers

* Fix /operations 500
  • Loading branch information
syldb authored May 27, 2024
1 parent e6bdaaf commit bb02c47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 0 additions & 2 deletions conventions/views/conventions.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ def post(self, request: AuthenticatedHttpRequest):
"conventions/calculette_loyer.html",
{
"form": loyer_simulateur_form,
"tabs": self.get_tabs(),
"montant_actualise": montant_actualise,
"annee_validite": annee_validite,
},
Expand All @@ -242,7 +241,6 @@ def get(self, request: AuthenticatedHttpRequest):
"conventions/calculette_loyer.html",
{
"form": loyer_simulateur_form,
"tabs": self.get_tabs(),
},
)

Expand Down
5 changes: 4 additions & 1 deletion programmes/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ def operation_conventions(request, numero_operation):
"conventions": paginator.get_page(request.GET.get("page", 1)),
"filtered_conventions_count": paginator.count,
"all_conventions_count": paginator.count,
"search_input": "",
"siap_assistance_url": settings.SIAP_ASSISTANCE_URL,
# FIXME: we can probably remove this and get the values from the request in the template
"search_operation_nom": "",
"search_numero": "",
"search_lieu": "",
},
)

0 comments on commit bb02c47

Please sign in to comment.