mysql/*
-static/*
\ No newline at end of file
+diggersdigest/static/*
\ No newline at end of file
#*.mo
#Volume Directory for docker-compose
-mysql/
\ No newline at end of file
+mysql/
+diggersdigest/static/
\ No newline at end of file
from .models import Label
from .models import Country
from .models import Record
-
+from .models import Podcast
admin.site.register(Gallery)
admin.site.register(Label)
admin.site.register(Country)
admin.site.register(Record)
+admin.site.register(Podcast)
--- /dev/null
+# -*- coding: utf-8 -*-
+from __future__ import unicode_literals
+
+from django.db import models, migrations
+import mezzanine.core.fields
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('blog', '0002_auto_20150527_1555'),
+ ('records', '0002_artist_country_label_record'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='Podcast',
+ fields=[
+ ('blogpost_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='blog.BlogPost')),
+ ('audio', mezzanine.core.fields.FileField(max_length=200, verbose_name='Audio File')),
+ ],
+ options={
+ 'abstract': False,
+ },
+ bases=('blog.blogpost',),
+ ),
+ ]
from cartridge.shop.models import Product
from mezzanine.core.fields import FileField
+from mezzanine.core.models import CONTENT_STATUS_DRAFT, CONTENT_STATUS_PUBLISHED
+from mezzanine.blog.models import BlogPost
from mezzanine.utils.models import upload_to
+
# Auto-generated Django models with manage.py inspectdb on the old database
# You'll have to do the following manually to clean this up:
# * Make sure each model has one field with primary_key=True
db_table = 'links'
def __unicode__(self):
- return self.titre
+ return self.adress
class Mix(models.Model):
# title --> shop.titre
# categories --> shop.theme
# price --> shop.prix
+ # status --> shop.published
artiste = models.CharField(max_length=128)
new = models.IntegerField()
cover = models.IntegerField() # TODO : choices=GRADINGS)
vinyl = models.IntegerField() # TODO : choices=GRADING)
audio = FileField(_("Audio File"), max_length=200, format="Audio",
- upload_to=upload_to("dig2site.Record.audio", "audio"))
+ upload_to=upload_to("records.Record.audio", "audio/records"))
def __unicode__(self):
return " - ".join([self.artiste, self.title])
+
+class Podcast(BlogPost):
+ audio = FileField(_("Audio File"), max_length=200, format="Audio",
+ upload_to=upload_to("records.Podcast.audio", "audio/mixes"))