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 %}