0001_initial.py 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # -*- coding: utf-8 -*-
  2. from __future__ import unicode_literals
  3. from django.db import models, migrations
  4. import django.utils.timezone
  5. class Migration(migrations.Migration):
  6. dependencies = [
  7. ]
  8. operations = [
  9. migrations.CreateModel(
  10. name='Bookmark',
  11. fields=[
  12. ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
  13. ('url', models.URLField(verbose_name='URL')),
  14. ('title', models.CharField(max_length=255, verbose_name='title')),
  15. ('user', models.PositiveIntegerField(verbose_name='user')),
  16. ('date_add', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date created')),
  17. ],
  18. options={
  19. 'ordering': ('date_add',),
  20. 'verbose_name': 'bookmark',
  21. 'verbose_name_plural': 'bookmarks',
  22. },
  23. ),
  24. migrations.CreateModel(
  25. name='PinnedApplication',
  26. fields=[
  27. ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
  28. ('app_label', models.CharField(max_length=255, verbose_name='application name')),
  29. ('user', models.PositiveIntegerField(verbose_name='user')),
  30. ('date_add', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date created')),
  31. ],
  32. options={
  33. 'ordering': ('date_add',),
  34. 'verbose_name': 'pinned application',
  35. 'verbose_name_plural': 'pinned applications',
  36. },
  37. ),
  38. migrations.CreateModel(
  39. name='UserDashboardModule',
  40. fields=[
  41. ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
  42. ('title', models.CharField(max_length=255, verbose_name='Title')),
  43. ('module', models.CharField(max_length=255, verbose_name='module')),
  44. ('app_label', models.CharField(max_length=255, null=True, verbose_name='application name', blank=True)),
  45. ('user', models.PositiveIntegerField(verbose_name='user')),
  46. ('column', models.PositiveIntegerField(verbose_name='column')),
  47. ('order', models.IntegerField(verbose_name='order')),
  48. ('settings', models.TextField(default=b'', verbose_name='settings', blank=True)),
  49. ('children', models.TextField(default=b'', verbose_name='children', blank=True)),
  50. ('collapsed', models.BooleanField(default=False, verbose_name='collapsed')),
  51. ],
  52. options={
  53. 'ordering': ('column', 'order'),
  54. 'verbose_name': 'user dashboard module',
  55. 'verbose_name_plural': 'user dashboard modules',
  56. },
  57. ),
  58. ]