Vous voici sur le Git Rural du CRAW

Commit 938d7a56 authored by Patrick Houben's avatar Patrick Houben

graph_month year1 year2 as int in form

parent c7c217ee
......@@ -362,14 +362,14 @@ class GraphParamForm(forms.Form):
super().__init__()
# collect init years
if request.GET.get("year1") is None:
year1 = request.session["year1"]
year1 = int(request.session["year1"])
else:
year1 = request.GET.get("year1")
year1 = int(request.GET.get("year1"))
if request.GET.get("year2") is None:
year2 = request.session["year2"]
year2 = int(request.session["year2"])
else:
year2 = request.GET.get("year2")
year2 = int(request.GET.get("year2"))
ddlb_list = get_year_list(request, "BOTH")
self.fields["year1"].initial = year1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment