Browse Source

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

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

+ 4 - 1
asuzr/models.py

@@ -121,4 +121,7 @@ class AccessProtocol(models.Model):
 #План заказов
 class OrderPlan(models.Model):
   date = models.DateField()
-  plan = models.IntegerField()
+  plan = models.IntegerField()
+
+  def __unicode__(self):
+    return self.date.strftime('%B %Y')