Исправил отображение изделий в админке
This commit is contained in:
@@ -15,6 +15,9 @@ class Common:
|
|||||||
class Product(models.Model):
|
class Product(models.Model):
|
||||||
name = models.CharField(max_length=150)
|
name = models.CharField(max_length=150)
|
||||||
prod_period = models.IntegerField()#трудоемкость, дней
|
prod_period = models.IntegerField()#трудоемкость, дней
|
||||||
|
|
||||||
|
def __unicode__(self):
|
||||||
|
return self.name
|
||||||
|
|
||||||
#Таблица посещаемости
|
#Таблица посещаемости
|
||||||
class Attendance(models.Model):
|
class Attendance(models.Model):
|
||||||
|
|||||||
Reference in New Issue
Block a user