Skip to content

Commit d204687

Browse files
committed
Merge pull request zerok#10 from sir-sigurd/django-1.7-migrations
added Django 1.7 migrations
2 parents 25dab16 + 5fb6f05 commit d204687

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

flatblocks/migrations/0001_initial.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import unicode_literals
3+
4+
from django.db import models, migrations
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
]
11+
12+
operations = [
13+
migrations.CreateModel(
14+
name='FlatBlock',
15+
fields=[
16+
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
17+
('slug', models.CharField(help_text='A unique name used for reference in the templates', unique=True, max_length=255, verbose_name='Slug')),
18+
('header', models.CharField(help_text='An optional header for this content', max_length=255, verbose_name='Header', blank=True)),
19+
('content', models.TextField(verbose_name='Content', blank=True)),
20+
],
21+
options={
22+
'verbose_name': 'Flat block',
23+
'verbose_name_plural': 'Flat blocks',
24+
},
25+
bases=(models.Model,),
26+
),
27+
]

flatblocks/migrations/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)