summaryrefslogtreecommitdiffstats
path: root/cms_ajax_text_plugin/migrations/0001_initial.py
blob: 533f858d18d5470eace1e44ee324c363f420f3ac (plain)
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models


class Migration(SchemaMigration):

    def forwards(self, orm):
        # Adding model 'TextWithExtraArgs'
        db.create_table(u'cmsplugin_textwithextraargs', (
            (u'textwrapper_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['cmsplugin_text_wrapper.TextWrapper'], unique=True, primary_key=True)),
            ('args', self.gf('django.db.models.fields.CharField')(max_length=256, null=True, blank=True)),
        ))
        db.send_create_signal(u'cms_ajax_text_plugin', ['TextWithExtraArgs'])


    def backwards(self, orm):
        # Deleting model 'TextWithExtraArgs'
        db.delete_table(u'cmsplugin_textwithextraargs')


    models = {
        'cms.cmsplugin': {
            'Meta': {'object_name': 'CMSPlugin'},
            'changed_date': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
            'creation_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'language': ('django.db.models.fields.CharField', [], {'max_length': '15', 'db_index': 'True'}),
            'level': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
            'lft': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
            'parent': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cms.CMSPlugin']", 'null': 'True', 'blank': 'True'}),
            'placeholder': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['cms.Placeholder']", 'null': 'True'}),
            'plugin_type': ('django.db.models.fields.CharField', [], {'max_length': '50', 'db_index': 'True'}),
            'position': ('django.db.models.fields.PositiveSmallIntegerField', [], {'null': 'True', 'blank': 'True'}),
            'rght': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
            'tree_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'})
        },
        'cms.placeholder': {
            'Meta': {'object_name': 'Placeholder'},
            'default_width': ('django.db.models.fields.PositiveSmallIntegerField', [], {'null': 'True'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'slot': ('django.db.models.fields.CharField', [], {'max_length': '50', 'db_index': 'True'})
        },
        u'cms_ajax_text_plugin.textwithextraargs': {
            'Meta': {'object_name': 'TextWithExtraArgs', 'db_table': "u'cmsplugin_textwithextraargs'", '_ormbases': [u'cmsplugin_text_wrapper.TextWrapper']},
            'args': ('django.db.models.fields.CharField', [], {'max_length': '256', 'null': 'True', 'blank': 'True'}),
            u'textwrapper_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': u"orm['cmsplugin_text_wrapper.TextWrapper']", 'unique': 'True', 'primary_key': 'True'})
        },
        u'cmsplugin_text_wrapper.textwrapper': {
            'Meta': {'object_name': 'TextWrapper', 'db_table': "'cmsplugin_text'"},
            'body': ('django.db.models.fields.TextField', [], {}),
            'classes': ('cmsplugin_text_wrapper.fields.MultiSelectField', [], {'max_length': '250', 'null': 'True', 'blank': 'True'}),
            u'cmsplugin_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['cms.CMSPlugin']", 'unique': 'True', 'primary_key': 'True'}),
            'wrapper': ('django.db.models.fields.CharField', [], {'max_length': '50', 'blank': 'True'})
        }
    }

    complete_apps = ['cms_ajax_text_plugin']