Browse Source

added auto_now_add for product.Item

master
Jonathan Moss 15 years ago
parent
commit
e2bc21bcee
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      oscar/product/models.py

+ 1
- 1
oscar/product/models.py View File

@@ -37,7 +37,7 @@ class Item(models.Model):
37 37
     partner_id = models.CharField(max_length = 32)
38 38
     type = models.ForeignKey('product.Type')
39 39
     date_available = models.DateField()
40
-    date_created = models.DateTimeField()
40
+    date_created = models.DateTimeField(auto_now_add=True)
41 41
 
42 42
     def __unicode__(self):
43 43
         return self.name

Loading…
Cancel
Save