From 729c2788313299d12a5b36ba6104268782e871d9 Mon Sep 17 00:00:00 2001 From: "Denis V. Dedkov" Date: Mon, 11 May 2015 11:41:23 +0500 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BE=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D1=8D=D1=81=D0=BA=D0=B8=D0=B7=D0=BE=D0=B2=20?= =?UTF-8?q?=D0=B2=20=D0=B0=D0=B4=D0=BC=D0=B8=D0=BD=D0=BA=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- asuzr/models.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/asuzr/models.py b/asuzr/models.py index 6d16814..fa87d4b 100644 --- a/asuzr/models.py +++ b/asuzr/models.py @@ -106,6 +106,9 @@ class Sketch(models.Model): sketch_file = models.FileField(upload_to = 'sketches') #путь к файу order = models.ForeignKey(Order) #id заказа + def __unicode__(self): + return self.sketch_file.name + #Действия class Action(models.Model): name = models.CharField(max_length=150) #наименование действия