diff --git a/projects/models.py b/projects/models.py index 35ea510..e1de565 100644 --- a/projects/models.py +++ b/projects/models.py @@ -290,7 +290,7 @@ class Portfolio(models.Model): construction_type = models.ForeignKey(ConstructionType, related_name='portfolios', null=True, blank=True) created = models.DateTimeField(auto_now_add=True, auto_created=True) currency = models.CharField(max_length=20, default='rur', choices=CURRENCIES, null=True, blank=True) - description = models.TextField() + description = models.TextField(blank=True) location = TreeForeignKey('common.Location', related_name='portfolios', null=True, blank=True) name = models.CharField(max_length=255) specialization = TreeForeignKey(Specialization, related_name='portfolios', null=True, blank=True) diff --git a/projects/templates/portfolio_detail.html b/projects/templates/portfolio_detail.html index 8d4ae53..5013bfb 100644 --- a/projects/templates/portfolio_detail.html +++ b/projects/templates/portfolio_detail.html @@ -20,90 +20,42 @@ {% endif %} - {#
#} - {#
#} - {#
#} - {#

{{ object.budget }}

#} - {#
#} - {# {% if request.user.is_authenticated %}#} - {#
#} - {# #} - {# купить#} - {# #} - {#
#} - {##} - {#
#} - {# #} - {# Написать сообщение#} - {# #} - {#
#} - {# {% endif %}#} - {#
#} - {# #} - {# посмотреть контакты#} - {# #} - {#
#} - {#
#} -
- {% if object.text %} -
-

Описание:

-
-
-

- {{ object.text }} -

-
- {% endif %} + {% if object.description %} +
+

Описание:

+
+
+

+ {{ object.description }} +

+
+ {% endif %}
-
-
+ {% if object.photos.all|length > 1 %} +
+
+ {% endif %} - -{#
#} -{#
#} -{#
#} -{#
#} -{#
#}
-{#
#} -{#

Похожие работы

#} -{#
#} -{#
#} -{# {% for worksell in worksell_related %}#} -{#
#} -{##} -{#
#} -{# {% thumbnail worksell.get_cover "265x265" crop="center" as im %}#} -{#
#} -{#
#} -{#
#} -{# {% endthumbnail %}#} -{#
#} -{#
#} -{# {% endfor %}#} -{#
#} - {% include 'partials/footer.html' %} -
diff --git a/users/templates/contractor_office.html b/users/templates/contractor_office.html index 6fe87a1..6e75308 100644 --- a/users/templates/contractor_office.html +++ b/users/templates/contractor_office.html @@ -17,7 +17,7 @@
- {% if False and contractor.team %} + {% if contractor.team %}