From f055e4c4ffd02a0f6ff598df1e2ea394ffd33211 Mon Sep 17 00:00:00 2001 From: PekopT Date: Mon, 29 Aug 2016 22:35:52 +0300 Subject: [PATCH] #ARC-8 11 --- projects/models.py | 2 +- projects/templates/portfolio_detail.html | 4 ++-- work_sell/templates/worksell_detail.html | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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..5c85ebf 100644 --- a/projects/templates/portfolio_detail.html +++ b/projects/templates/portfolio_detail.html @@ -47,13 +47,13 @@
- {% if object.text %} + {% if object.description %}

Описание:

- {{ object.text }} + {{ object.description }}

{% endif %} diff --git a/work_sell/templates/worksell_detail.html b/work_sell/templates/worksell_detail.html index e43e153..8111bd7 100644 --- a/work_sell/templates/worksell_detail.html +++ b/work_sell/templates/worksell_detail.html @@ -48,13 +48,13 @@
- {% if object.text %} + {% if object.description %}

Описание:

- {{ object.text }} + {{ object.description }}

{% endif %}