~dholbach/ubucon-site/newsblog

« back to all changes in this revision

Viewing changes to ubucon_site/migrations/0001_initial.py

  • Committer: David Planella
  • Date: 2015-11-14 08:37:25 UTC
  • Revision ID: david.planella@ubuntu.com-20151114083725-h91h9rs7qpmd83kk
Added migration for the new RawHtml plugin

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
        ('cms', '0012_auto_20150607_2207'),
 
11
    ]
 
12
 
 
13
    operations = [
 
14
        migrations.CreateModel(
 
15
            name='RawHtml',
 
16
            fields=[
 
17
                ('cmsplugin_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='cms.CMSPlugin')),
 
18
                ('body', models.TextField(verbose_name='body')),
 
19
            ],
 
20
            options={
 
21
                'abstract': False,
 
22
            },
 
23
            bases=('cms.cmsplugin',),
 
24
        ),
 
25
    ]