From: Jan Szejko Date: Tue, 9 May 2017 11:03:09 +0000 (+0200) Subject: chunk migrations X-Git-Url: https://git.mdrn.pl/emels.git/commitdiff_plain/ec5d376967492f3a258b5c2c70dee2a413bafac0 chunk migrations --- diff --git a/chunks/migrations/0001_initial.py b/chunks/migrations/0001_initial.py new file mode 100644 index 0000000..30e1ffa --- /dev/null +++ b/chunks/migrations/0001_initial.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.10.6 on 2017-05-09 11:02 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Attachment', + fields=[ + ('key', models.CharField(help_text='A unique name for this attachment', max_length=255, primary_key=True, serialize=False, verbose_name='key')), + ('attachment', models.FileField(upload_to=b'chunks/attachment')), + ], + options={ + 'ordering': ('key',), + 'verbose_name': 'attachment', + 'verbose_name_plural': 'attachments', + }, + ), + migrations.CreateModel( + name='Chunk', + fields=[ + ('key', models.CharField(help_text='A unique name for this chunk of content', max_length=255, primary_key=True, serialize=False, verbose_name='key')), + ('description', models.CharField(blank=True, max_length=255, verbose_name='description')), + ('content', models.TextField(blank=True, verbose_name='content')), + ], + options={ + 'ordering': ('key',), + 'verbose_name': 'chunk', + 'verbose_name_plural': 'chunks', + }, + ), + ] diff --git a/chunks/migrations/__init__.py b/chunks/migrations/__init__.py new file mode 100644 index 0000000..e69de29