blog

Add migrations to blog app

Author
Vngngdn
Date
July 10, 2017, 4:33 p.m.
Hash
5616c8c3ec6501a9d75f3105c3bafed575711131
Parent
1957abb2ef5154f3fa0096f5079c6ea8a4d246e7
Modified files
migrations/0001_initial.py
migrations/__init__.py

migrations/0001_initial.py

29 additions and 0 deletions.

View changes Hide changes
+
1
# Generated by Django 1.11.2 on 2017-07-10 14:29
+
2
from __future__ import unicode_literals
+
3
+
4
import blog.models
+
5
from django.db import migrations, models
+
6
+
7
+
8
class Migration(migrations.Migration):
+
9
+
10
    initial = True
+
11
+
12
    dependencies = [
+
13
    ]
+
14
+
15
    operations = [
+
16
        migrations.CreateModel(
+
17
            name='Post',
+
18
            fields=[
+
19
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
+
20
                ('published', models.DateTimeField(auto_now_add=True)),
+
21
                ('file_de', models.FileField(blank=True, unique=True, upload_to=blog.models.post_title_directory)),
+
22
                ('file_es', models.FileField(blank=True, unique=True, upload_to=blog.models.post_title_directory)),
+
23
                ('file_en', models.FileField(unique=True, upload_to=blog.models.post_title_directory)),
+
24
                ('file_fr', models.FileField(blank=True, unique=True, upload_to=blog.models.post_title_directory)),
+
25
                ('file_nl', models.FileField(blank=True, unique=True, upload_to=blog.models.post_title_directory)),
+
26
            ],
+
27
        ),
+
28
    ]
+
29

migrations/__init__.py

0 additions and 0 deletions.

View changes Hide changes