Исправил отображение эскизов в админке

This commit is contained in:
2015-05-11 11:41:23 +05:00
parent 6a7098b6e7
commit 729c278831

View File

@@ -106,6 +106,9 @@ class Sketch(models.Model):
sketch_file = models.FileField(upload_to = 'sketches') #путь к файу sketch_file = models.FileField(upload_to = 'sketches') #путь к файу
order = models.ForeignKey(Order) #id заказа order = models.ForeignKey(Order) #id заказа
def __unicode__(self):
return self.sketch_file.name
#Действия #Действия
class Action(models.Model): class Action(models.Model):
name = models.CharField(max_length=150) #наименование действия name = models.CharField(max_length=150) #наименование действия