|
|
|
@ -288,6 +288,7 @@ class ProjectFilterView(BaseMixin, View): |
|
|
|
cro = form.cleaned_data.get('cro') |
|
|
|
cro = form.cleaned_data.get('cro') |
|
|
|
work_type = form.cleaned_data.get('work_type') |
|
|
|
work_type = form.cleaned_data.get('work_type') |
|
|
|
specialization = form.cleaned_data.get('specialization') |
|
|
|
specialization = form.cleaned_data.get('specialization') |
|
|
|
|
|
|
|
realty = form.cleaned_data.get('realty') |
|
|
|
|
|
|
|
|
|
|
|
building_classification = realty_form.cleaned_data.get('building_classification') |
|
|
|
building_classification = realty_form.cleaned_data.get('building_classification') |
|
|
|
construction_type = realty_form.cleaned_data.get('construction_type') |
|
|
|
construction_type = realty_form.cleaned_data.get('construction_type') |
|
|
|
@ -322,6 +323,9 @@ class ProjectFilterView(BaseMixin, View): |
|
|
|
realty__location__lft__gte=location.lft, |
|
|
|
realty__location__lft__gte=location.lft, |
|
|
|
realty__location__rght__lte=location.rght, |
|
|
|
realty__location__rght__lte=location.rght, |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if realty: |
|
|
|
|
|
|
|
projects = projects.filter(realty=realty) |
|
|
|
|
|
|
|
|
|
|
|
order_by = form.cleaned_data.get('order_by') |
|
|
|
order_by = form.cleaned_data.get('order_by') |
|
|
|
last_order_by = form.cleaned_data.get('last_order_by') |
|
|
|
last_order_by = form.cleaned_data.get('last_order_by') |
|
|
|
|