diff --git a/projects/forms.py b/projects/forms.py
index a7580c3..c8f3247 100644
--- a/projects/forms.py
+++ b/projects/forms.py
@@ -10,11 +10,6 @@ from common.models import Location
from users.models import User
-# RealtyFormSet = inlineformset_factory(Project, Realty)
-
-
-
-
class ProjectFilterForm(forms.ModelForm):
PROJECT_ORDER_CHOICES = ( # "Упорядочить по"...
('name', 'названию'),
@@ -50,7 +45,6 @@ class ProjectFilterForm(forms.ModelForm):
self.fields['work_type'].initial = ''
self.fields['specialization'].required = False
-
self.fields['specialization'].queryset = Specialization.objects.root_nodes()[0].get_descendants()
diff --git a/projects/models.py b/projects/models.py
index f166d57..4e9f3eb 100644
--- a/projects/models.py
+++ b/projects/models.py
@@ -6,6 +6,7 @@ from django.utils import timezone
from users.models import User
from specializations.models import Specialization
+
CURRENCIES = (
('rur', 'RUR'),
('usd', 'USD'),
diff --git a/projects/templates/project_filter.html b/projects/templates/project_filter.html
index e921393..66589db 100644
--- a/projects/templates/project_filter.html
+++ b/projects/templates/project_filter.html
@@ -234,44 +234,14 @@
-
-
-
- {% if is_paginated %}
-
- {% else %}
- {% include 'partials/pagination.html' %}
- {% endif %}
+ {% include 'partials/pagination.html' %}
+
+
+
{% include 'partials/footer.html' %}
diff --git a/projects/views.py b/projects/views.py
index 5b9e970..c1d3d3e 100644
--- a/projects/views.py
+++ b/projects/views.py
@@ -10,7 +10,7 @@ from django.views.generic import ListView, DetailView, CreateView, View, UpdateV
from django.views.generic.base import ContextMixin
from pprint import pprint, pformat
import json
-import pydash as _
+import pydash as _; _.map = _.map_; _.filter = _.filter_
import re
from .mixins import LastAccessMixin
@@ -131,13 +131,12 @@ class ProjectFilterView(BaseMixin, View):
except EmptyPage:
projects = paginator.page(paginator.num_pages)
- # import code; code.interact(local=dict(globals(), **locals()))
-
context.update({
'form': form,
'realty_form': realty_form,
'projects': projects,
'is_paginated': True,
+ 'page_obj': projects,
'display_msg': display_msg,
})
diff --git a/templates/partials/header.html b/templates/partials/header.html
index e99071a..63a2064 100644
--- a/templates/partials/header.html
+++ b/templates/partials/header.html
@@ -1,131 +1,137 @@
- {% load staticfiles %}
- {% load thumbnail %}
-
-
-
-
- {% if request.user.is_authenticated %}
-
-
- -
- Биржа проектов
-
-
+{% load staticfiles %}
+{% load thumbnail %}
+
+
+
+
+
+
+ {% if request.user.is_authenticated %}
+
- {% else %}
+
+
+ {% else %}
- {% endif %}
- {% if request.user.is_authenticated %}
-
+ {% endif %}
+
+ {% if request.user.is_authenticated %}
+
+
+
+
+
{% if request.user.is_contractor %}
-
-
45%
+
+
45%
{% endif %}
-
- {% else %}
-
- {% endif %}
-
-
-
+
+ {% else %}
+
+ {% endif %}
+
+
+
diff --git a/templates/partials/pagination.html b/templates/partials/pagination.html
index f208146..bf07867 100644
--- a/templates/partials/pagination.html
+++ b/templates/partials/pagination.html
@@ -1,21 +1,29 @@
-
+{% if is_paginated %}
+
+{% endif %}
diff --git a/templates/trash/contractor-filter.html b/templates/trash/contractor-filter.html
index 32de882..33892de 100644
--- a/templates/trash/contractor-filter.html
+++ b/templates/trash/contractor-filter.html
@@ -21,6 +21,7 @@
+
+

@@ -95,11 +97,15 @@
+
+
+
+
+
+
+
+
+