0001_initial.py 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. # -*- coding: utf-8 -*-
  2. from __future__ import unicode_literals
  3. from django.db import models, migrations
  4. class Migration(migrations.Migration):
  5. dependencies = [
  6. ]
  7. operations = [
  8. migrations.CreateModel(
  9. name='UserDashboardModule',
  10. fields=[
  11. ('id', models.AutoField(verbose_name='ID', primary_key=True, serialize=False, auto_created=True)),
  12. ('title', models.CharField(verbose_name='Title', max_length=255)),
  13. ('module', models.CharField(verbose_name='module', max_length=255)),
  14. ('app_label', models.CharField(verbose_name='application name', max_length=255, blank=True, null=True)),
  15. ('user', models.PositiveIntegerField(verbose_name='user')),
  16. ('column', models.PositiveIntegerField(verbose_name='column')),
  17. ('order', models.IntegerField(verbose_name='order')),
  18. ('settings', models.TextField(verbose_name='settings', blank=True, default='')),
  19. ('children', models.TextField(verbose_name='children', blank=True, default='')),
  20. ('collapsed', models.BooleanField(verbose_name='collapsed', default=False)),
  21. ],
  22. options={
  23. 'verbose_name': 'user dashboard module',
  24. 'verbose_name_plural': 'user dashboard modules',
  25. 'ordering': ('column', 'order'),
  26. },
  27. ),
  28. ]