From 7107c55f66b3f70a7f9664ed7ab82bd3ca38d58e Mon Sep 17 00:00:00 2001 From: PekopT Date: Fri, 26 Aug 2016 21:18:30 +0300 Subject: [PATCH] various --- projects/models.py | 2 +- users/templates/contractor_profile.html | 8 ++++++-- work_sell/models.py | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/projects/models.py b/projects/models.py index cfedcda..a4cebcd 100644 --- a/projects/models.py +++ b/projects/models.py @@ -287,7 +287,7 @@ class Portfolio(models.Model): budget = models.DecimalField(max_digits=10, decimal_places=0, default=0, null=True, blank=True) building_classification = models.ForeignKey(BuildingClassfication, related_name='portfolios', null=True, blank=True) construction_type = models.ForeignKey(ConstructionType, related_name='portfolios', null=True, blank=True) - created = models.DateTimeField(default=timezone.now, auto_now_add=True, auto_created=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() location = TreeForeignKey('common.Location', related_name='portfolios', null=True, blank=True) diff --git a/users/templates/contractor_profile.html b/users/templates/contractor_profile.html index 89b546f..faa9a36 100644 --- a/users/templates/contractor_profile.html +++ b/users/templates/contractor_profile.html @@ -383,7 +383,9 @@ {% thumbnail diplom.img "210x334" crop="center" as im %}
-
+ +
+
{% endthumbnail %} @@ -414,7 +416,9 @@ {% thumbnail cro.img "210x334" crop="center" as im %}
-
+ +
+
{% endthumbnail %} diff --git a/work_sell/models.py b/work_sell/models.py index b9f7d22..94f0ddc 100644 --- a/work_sell/models.py +++ b/work_sell/models.py @@ -17,7 +17,7 @@ class WorkSell(models.Model): building_classification = models.ForeignKey(BuildingClassfication, related_name='worksells', null=True, blank=True) construction_type = models.ForeignKey(ConstructionType, related_name='worksells', null=True, blank=True) contractor = models.ForeignKey(User, related_name='work_sell', null=True, blank=True) # TODO: Pluralize related name - created = models.DateTimeField(default=timezone.now, auto_now_add=True) + created = models.DateTimeField(auto_now_add=True) currency = models.CharField(max_length=20, default='rur', choices=CURRENCIES, null=True, blank=True) description = models.TextField(blank=True) location = TreeForeignKey('common.Location', related_name='worksells', null=True, blank=True)