diff --git a/projects/forms.py b/projects/forms.py index 7beb824..476efa4 100644 --- a/projects/forms.py +++ b/projects/forms.py @@ -35,8 +35,10 @@ class ProjectFilterForm(forms.ModelForm): fields = ( 'cro', - 'specialization', 'work_type', + + 'realty', + 'specialization', ) widgets = { diff --git a/projects/serializers.py b/projects/serializers.py index 8c97bdd..33ffff6 100755 --- a/projects/serializers.py +++ b/projects/serializers.py @@ -67,11 +67,12 @@ class RealtySerializer(ModelSerializer): model = Realty fields = ( + 'id', + 'name', + 'building_classification', 'construction_type', - 'id', 'location', - 'name', 'user', ) diff --git a/projects/templates/project_filter.html b/projects/templates/project_filter.html index 4b85d61..722bdf5 100644 --- a/projects/templates/project_filter.html +++ b/projects/templates/project_filter.html @@ -185,7 +185,7 @@ {% if project.realty and project.realty.name %}