0001_initial.py 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # -*- coding: utf-8 -*-
  2. from south.utils import datetime_utils as datetime
  3. from south.db import db
  4. from south.v2 import SchemaMigration
  5. from django.db import models
  6. class Migration(SchemaMigration):
  7. def forwards(self, orm):
  8. # Adding model 'UserDashboardModule'
  9. db.create_table(u'dashboard_userdashboardmodule', (
  10. (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
  11. ('title', self.gf('django.db.models.fields.CharField')(max_length=255)),
  12. ('module', self.gf('django.db.models.fields.CharField')(max_length=255)),
  13. ('app_label', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=True)),
  14. ('user', self.gf('django.db.models.fields.PositiveIntegerField')()),
  15. ('column', self.gf('django.db.models.fields.PositiveIntegerField')()),
  16. ('order', self.gf('django.db.models.fields.IntegerField')()),
  17. ('settings', self.gf('django.db.models.fields.TextField')(default='', blank=True)),
  18. ('children', self.gf('django.db.models.fields.TextField')(default='', blank=True)),
  19. ('collapsed', self.gf('django.db.models.fields.BooleanField')(default=False)),
  20. ))
  21. db.send_create_signal(u'dashboard', ['UserDashboardModule'])
  22. def backwards(self, orm):
  23. # Deleting model 'UserDashboardModule'
  24. db.delete_table(u'dashboard_userdashboardmodule')
  25. models = {
  26. u'dashboard.userdashboardmodule': {
  27. 'Meta': {'ordering': "('column', 'order')", 'object_name': 'UserDashboardModule'},
  28. 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
  29. 'children': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
  30. 'collapsed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
  31. 'column': ('django.db.models.fields.PositiveIntegerField', [], {}),
  32. u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
  33. 'module': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
  34. 'order': ('django.db.models.fields.IntegerField', [], {}),
  35. 'settings': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
  36. 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
  37. 'user': ('django.db.models.fields.PositiveIntegerField', [], {})
  38. }
  39. }
  40. complete_apps = ['dashboard']