Browse Source

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

Denis V. Dedkov 10 years ago
parent
commit
f29ab42443
1 changed files with 3 additions and 0 deletions
  1. 3 0
      asuzr/models.py

+ 3 - 0
asuzr/models.py

@@ -15,6 +15,9 @@ class Common:
 class Product(models.Model):
   name = models.CharField(max_length=150)
   prod_period = models.IntegerField()#трудоемкость, дней
+
+  def __unicode__(self):
+    return self.name
   
 #Таблица посещаемости
 class Attendance(models.Model):