forked from gnyylmz/BlogProject
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path0003_auto_20160825_1007.py
More file actions
33 lines (28 loc) · 1005 Bytes
/
0003_auto_20160825_1007.py
File metadata and controls
33 lines (28 loc) · 1005 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-08-25 10:07
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('Blog', '0002_auto_20160825_0942'),
]
operations = [
migrations.CreateModel(
name='content_media',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('image', models.ImageField(null=True, upload_to='blog_img')),
],
),
migrations.AlterField(
model_name='post',
name='image',
field=models.ImageField(null=True, upload_to='blog_img'),
),
migrations.AddField(
model_name='content_media',
name='blog',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Blog.post'),
),
]