3 from south.db import db
4 from south.v2 import DataMigration
5 from django.db import models
7 class Migration(DataMigration):
9 def forwards(self, orm):
10 from django.core.management import call_command
11 call_command("loaddata", "initial_toolbar.yaml")
14 def backwards(self, orm):
15 "Write your backwards methods here."
21 'Meta': {'ordering': "('slug',)", 'object_name': 'Button'},
22 'accesskey': ('django.db.models.fields.CharField', [], {'max_length': '1', 'blank': 'True'}),
23 'group': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['toolbar.ButtonGroup']", 'symmetrical': 'False'}),
24 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
25 'label': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
26 'link': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}),
27 'params': ('django.db.models.fields.TextField', [], {'default': "'[]'"}),
28 'scriptlet': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['toolbar.Scriptlet']", 'null': 'True', 'blank': 'True'}),
29 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50', 'db_index': 'True'}),
30 'tooltip': ('django.db.models.fields.CharField', [], {'max_length': '120', 'blank': 'True'})
32 'toolbar.buttongroup': {
33 'Meta': {'ordering': "('position', 'name')", 'object_name': 'ButtonGroup'},
34 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
35 'name': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
36 'position': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
37 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'})
39 'toolbar.scriptlet': {
40 'Meta': {'object_name': 'Scriptlet'},
41 'code': ('django.db.models.fields.TextField', [], {}),
42 'name': ('django.db.models.fields.CharField', [], {'max_length': '64', 'primary_key': 'True'})
46 complete_apps = ['toolbar']