]> git.parisson.com Git - diggersdigest.git/commitdiff
make date a Date
authorGuillaume Pellerin <yomguy@parisson.com>
Tue, 25 Aug 2015 15:12:46 +0000 (17:12 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Tue, 25 Aug 2015 15:12:46 +0000 (17:12 +0200)
diggersdigest/records/migrations/0007_auto_20150825_1511.py [new file with mode: 0644]
diggersdigest/records/models.py

diff --git a/diggersdigest/records/migrations/0007_auto_20150825_1511.py b/diggersdigest/records/migrations/0007_auto_20150825_1511.py
new file mode 100644 (file)
index 0000000..88b9d2c
--- /dev/null
@@ -0,0 +1,19 @@
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import models, migrations
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('records', '0006_auto_20150825_1452'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='record',
+            name='date',
+            field=models.DateField(),
+        ),
+    ]
index e5d962e47831ae1870101c582e0ca3abcffa29d8..c148c110b3f125d987332e90cae806d6d6b7ae53 100644 (file)
@@ -162,7 +162,7 @@ class Artist(models.Model):
     name = models.CharField(max_length=128)
     def __unicode__(self):
         return self.name
-    
+
 class Label(models.Model):
     name = models.CharField(max_length=128)
     def __unicode__(self):
@@ -174,7 +174,7 @@ class Country(models.Model):
         return self.name
 
 
-    
+
 class Record(Product):
     """
     Model for Record
@@ -185,7 +185,7 @@ class Record(Product):
     # price --> shop.prix
     # status --> shop.published
     NEW = 1
-    ON_HOLD = 2 
+    ON_HOLD = 2
     JUST_SOLD = 3
     NOVELTY_CHOICES = (
         (0, ''),
@@ -194,11 +194,11 @@ class Record(Product):
         (JUST_SOLD, 'Just Sold')
     )
     #GRADINGS_CHOICES = ()
-     
+
     artist = models.ForeignKey(Artist)
     new = models.IntegerField(choices=NOVELTY_CHOICES, default=NEW)
     label = models.ForeignKey(Label)
-    date = models.CharField(max_length=8)
+    date = models.DateField()
     country = models.ForeignKey(Country)
     desc = models.TextField()
     cover = models.IntegerField()  # TODO : choices=GRADINGS)