3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
9 def forwards(self, orm):
11 # Deleting field 'Button.key'
12 db.rename_column('toolbar_button', 'key', 'accesskey')
16 def backwards(self, orm):
17 db.rename_column('toolbar_button', 'accesskey', 'key')
22 'Meta': {'object_name': 'Button'},
23 'accesskey': ('django.db.models.fields.CharField', [], {'max_length': '1', 'null': 'True'}),
24 'group': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['toolbar.ButtonGroup']"}),
25 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
26 'label': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
27 'link': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}),
28 'params': ('django.db.models.fields.TextField', [], {'default': "'[]'"}),
29 'scriptlet': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['toolbar.Scriptlet']", 'null': 'True', 'blank': 'True'}),
30 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50', 'db_index': 'True'}),
31 'tooltip': ('django.db.models.fields.CharField', [], {'max_length': '120', 'blank': 'True'})
33 'toolbar.buttongroup': {
34 'Meta': {'object_name': 'ButtonGroup'},
35 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
36 'name': ('django.db.models.fields.CharField', [], {'max_length': '32'}),
37 'position': ('django.db.models.fields.IntegerField', [], {'default': '0'}),
38 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '50', 'db_index': 'True'})
40 'toolbar.scriptlet': {
41 'Meta': {'object_name': 'Scriptlet'},
42 'code': ('django.db.models.fields.TextField', [], {}),
43 'name': ('django.db.models.fields.CharField', [], {'max_length': '64', 'primary_key': 'True'})
47 complete_apps = ['toolbar']