--- /dev/null
+# -*- 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(),
+ ),
+ ]
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):
return self.name
-
+
class Record(Product):
"""
Model for Record
# price --> shop.prix
# status --> shop.published
NEW = 1
- ON_HOLD = 2
+ ON_HOLD = 2
JUST_SOLD = 3
NOVELTY_CHOICES = (
(0, ''),
(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)