示例#1
0
class Migration(migrations.Migration):

    dependencies = [
        ('GameMaster', '0001_initial'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='zodiacimage',
            name='image',
        ),
        migrations.AddField(
            model_name='zodiacimage',
            name='image_url',
            field=models.URLField(default='', unique=True),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='character',
            name='name',
            field=models.CharField(choices=[('YaoBuRan', '药不然'),
                                            ('XuYuan', '许愿'),
                                            ('FangZhen', '方震'),
                                            ('JiYunFu', '姬云浮'),
                                            ('LaoChaoFeng', '老朝奉'),
                                            ('Kana Kinoshi', '木户加奈'),
                                            ('ZhengGuoQu', '郑国渠'),
                                            ('HuangYanYan', '黄烟烟')],
                                   max_length=31,
                                   unique=True),
        ),
        migrations.AlterField(
            model_name='player',
            name='color',
            field=models.CharField(choices=[('Blue', '蓝'), ('White', '白'),
                                            ('Yellow', '黄'), ('Purple', '紫'),
                                            ('Green', '绿'), ('Black', '黑'),
                                            ('Orange', '橙'), ('Red', '红')],
                                   max_length=7,
                                   null=True),
        ),
        migrations.AlterField(
            model_name='zodiac',
            name='name',
            field=models.CharField(choices=[('Pig', '猪'), ('Tiger', '虎'),
                                            ('Rabbit', '兔'), ('Snake', '蛇'),
                                            ('Rooster', '鸡'), ('Rat', '鼠'),
                                            ('Monkey', '猴'), ('Horse', '马'),
                                            ('Dog', '狗'), ('Sheep', '羊'),
                                            ('Ox', '牛'), ('Dragon', '龙')],
                                   max_length=31),
        ),
        migrations.AlterField(
            model_name='zodiacimage',
            name='name',
            field=models.CharField(choices=[('Pig', '猪'), ('Tiger', '虎'),
                                            ('Rabbit', '兔'), ('Snake', '蛇'),
                                            ('Rooster', '鸡'), ('Rat', '鼠'),
                                            ('Monkey', '猴'), ('Horse', '马'),
                                            ('Dog', '狗'), ('Sheep', '羊'),
                                            ('Ox', '牛'), ('Dragon', '龙')],
                                   max_length=31,
                                   unique=True),
        ),
    ]
示例#2
0
class Migration(migrations.Migration):

    dependencies = [
        ('docs', '0005_auto_20171213_1253'),
    ]

    operations = [
        migrations.CreateModel(
            name='Competency',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('title', models.CharField(max_length=200)),
            ],
            options={
                'db_table': 'Competency',
                'verbose_name': 'Competency',
                'verbose_name_plural': 'Competencies',
            },
        ),
        migrations.CreateModel(
            name='CompetencyDocument',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('file_path', models.TextField(verbose_name='File Path')),
                ('completion_date', models.DateTimeField(default=django.utils.timezone.now)),
                ('renewal_date', models.DateTimeField(blank=True, editable=False, null=True)),
                ('competency_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='docs.Competency')),
                ('employee_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='docs.Employee')),
            ],
            options={
                'db_table': 'CompetencyDocument',
                'verbose_name': 'Competency Document',
                'verbose_name_plural': 'Competency Documents',
            },
        ),
        migrations.CreateModel(
            name='Document',
            fields=[
                ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
                ('title', models.CharField(max_length=200)),
                ('link', models.URLField()),
                ('category_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='docs.Category')),
                ('test_id', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='docs.Test')),
                ('type_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='docs.DocumentType')),
            ],
            options={
                'db_table': 'Document',
                'verbose_name': 'Document',
                'verbose_name_plural': 'Documents',
            },
        ),
        migrations.RemoveField(
            model_name='documentation',
            name='category_id',
        ),
        migrations.RemoveField(
            model_name='documentation',
            name='employee_id',
        ),
        migrations.RemoveField(
            model_name='documentation',
            name='test_id',
        ),
        migrations.RemoveField(
            model_name='documentation',
            name='type_id',
        ),
        migrations.DeleteModel(
            name='Documentation',
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('documents', '0023_document_current_filename'),
    ]

    operations = [
        migrations.AddField(
            model_name='document',
            name='archive_serial_number',
            field=models.IntegerField(blank=True, db_index=True, help_text='The position of this document in your physical document archive.', null=True, unique=True),
        ),
        migrations.AddField(
            model_name='tag',
            name='is_inbox_tag',
            field=models.BooleanField(default=False, help_text='Marks this tag as an inbox tag: All newly consumed documents will be tagged with inbox tags.'),
        ),
        migrations.CreateModel(
            name='DocumentType',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=128, unique=True)),
                ('slug', models.SlugField(blank=True, editable=False)),
                ('match', models.CharField(blank=True, max_length=256)),
                ('matching_algorithm', models.PositiveIntegerField(choices=[(1, 'Any'), (2, 'All'), (3, 'Literal'), (4, 'Regular Expression'), (5, 'Fuzzy Match'), (6, 'Automatic Classification')], default=1, help_text='Which algorithm you want to use when matching text to the OCR\'d PDF.  Here, "any" looks for any occurrence of any word provided in the PDF, while "all" requires that every word provided appear in the PDF, albeit not in the order provided.  A "literal" match means that the text you enter must appear in the PDF exactly as you\'ve entered it, and "regular expression" uses a regex to match the PDF.  (If you don\'t know what a regex is, you probably don\'t want this option.)  Finally, a "fuzzy match" looks for words or phrases that are mostly—but not exactly—the same, which can be useful for matching against documents containg imperfections that foil accurate OCR.')),
                ('is_insensitive', models.BooleanField(default=True)),
            ],
            options={
                'abstract': False,
                'ordering': ('name',),
            },
        ),
        migrations.AddField(
            model_name='document',
            name='document_type',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='documents', to='documents.documenttype'),
        ),
        migrations.AlterField(
            model_name='correspondent',
            name='matching_algorithm',
            field=models.PositiveIntegerField(choices=[(1, 'Any'), (2, 'All'), (3, 'Literal'), (4, 'Regular Expression'), (5, 'Fuzzy Match'), (6, 'Automatic Classification')], default=1, help_text='Which algorithm you want to use when matching text to the OCR\'d PDF.  Here, "any" looks for any occurrence of any word provided in the PDF, while "all" requires that every word provided appear in the PDF, albeit not in the order provided.  A "literal" match means that the text you enter must appear in the PDF exactly as you\'ve entered it, and "regular expression" uses a regex to match the PDF.  (If you don\'t know what a regex is, you probably don\'t want this option.)  Finally, a "fuzzy match" looks for words or phrases that are mostly—but not exactly—the same, which can be useful for matching against documents containg imperfections that foil accurate OCR.'),
        ),
        migrations.AlterField(
            model_name='tag',
            name='matching_algorithm',
            field=models.PositiveIntegerField(choices=[(1, 'Any'), (2, 'All'), (3, 'Literal'), (4, 'Regular Expression'), (5, 'Fuzzy Match'), (6, 'Automatic Classification')], default=1, help_text='Which algorithm you want to use when matching text to the OCR\'d PDF.  Here, "any" looks for any occurrence of any word provided in the PDF, while "all" requires that every word provided appear in the PDF, albeit not in the order provided.  A "literal" match means that the text you enter must appear in the PDF exactly as you\'ve entered it, and "regular expression" uses a regex to match the PDF.  (If you don\'t know what a regex is, you probably don\'t want this option.)  Finally, a "fuzzy match" looks for words or phrases that are mostly—but not exactly—the same, which can be useful for matching against documents containg imperfections that foil accurate OCR.'),
        ),
        migrations.AlterField(
            model_name='document',
            name='content',
            field=models.TextField(blank=True, help_text='The raw, text-only data of the document. This field is primarily used for searching.'),
        ),
        migrations.AlterModelOptions(
            name='log',
            options={'ordering': ('-created',)},
        ),
        migrations.RemoveField(
            model_name='log',
            name='modified',
        ),
        migrations.AlterField(
            model_name='log',
            name='group',
            field=models.UUIDField(blank=True, null=True),
        ),
        migrations.RunPython(
            code=django.db.migrations.operations.special.RunPython.noop,
            reverse_code=logs_set_default_group
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('sites', '0002_alter_domain_unique'),
        ('shop', '0004_auto_20180831_1753'),
        ('mukluk', '0007_designedproductimage'),
    ]

    operations = [
        migrations.CreateModel(
            name='Design',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('keywords_string', models.CharField(blank=True, editable=False, max_length=500)),
                ('title', models.CharField(max_length=500, verbose_name='Title')),
                ('slug', models.CharField(blank=True, help_text='Leave blank to have the URL auto-generated from the title.', max_length=2000, verbose_name='URL')),
                ('_meta_title', models.CharField(blank=True, help_text='Optional title to be used in the HTML title tag. If left blank, the main title field will be used.', max_length=500, null=True, verbose_name='Title')),
                ('description', models.TextField(blank=True, verbose_name='Description')),
                ('gen_description', models.BooleanField(default=True, help_text='If checked, the description will be automatically generated from content. Uncheck if you want to manually set a custom description.', verbose_name='Generate description')),
                ('created', models.DateTimeField(editable=False, null=True)),
                ('updated', models.DateTimeField(editable=False, null=True)),
                ('status', models.IntegerField(choices=[(1, 'Draft'), (2, 'Published')], default=2, help_text='With Draft chosen, will only be shown for admin users on the site.', verbose_name='Status')),
                ('publish_date', models.DateTimeField(blank=True, db_index=True, help_text="With Published chosen, won't be shown until this time", null=True, verbose_name='Published from')),
                ('expiry_date', models.DateTimeField(blank=True, help_text="With Published chosen, won't be shown after this time", null=True, verbose_name='Expires on')),
                ('short_url', models.URLField(blank=True, null=True)),
                ('in_sitemap', models.BooleanField(default=True, verbose_name='Show in sitemap')),
                ('content', mezzanine.core.fields.RichTextField(verbose_name='Content')),
            ],
            options={
                'verbose_name': 'Design',
                'verbose_name_plural': 'Designs',
            },
        ),
        migrations.AlterModelOptions(
            name='designedproduct',
            options={},
        ),
        migrations.RemoveField(
            model_name='designasset',
            name='designed_product',
        ),
        migrations.RemoveField(
            model_name='designedproduct',
            name='_meta_title',
        ),
        migrations.RemoveField(
            model_name='designedproduct',
            name='content',
        ),
        migrations.RemoveField(
            model_name='designedproduct',
            name='content_model',
        ),
        migrations.RemoveField(
            model_name='designedproduct',
            name='description',
        ),
        migrations.RemoveField(
            model_name='designedproduct',
            name='expiry_date',
        ),
        migrations.RemoveField(
            model_name='designedproduct',
            name='gen_description',
        ),
        migrations.RemoveField(
            model_name='designedproduct',
            name='in_sitemap',
        ),
        migrations.RemoveField(
            model_name='designedproduct',
            name='keywords_string',
        ),
        migrations.RemoveField(
            model_name='designedproduct',
            name='publish_date',
        ),
        migrations.RemoveField(
            model_name='designedproduct',
            name='short_url',
        ),
        migrations.RemoveField(
            model_name='designedproduct',
            name='site',
        ),
        migrations.RemoveField(
            model_name='designedproduct',
            name='slug',
        ),
        migrations.RemoveField(
            model_name='designedproduct',
            name='status',
        ),
        migrations.RemoveField(
            model_name='designedproduct',
            name='title',
        ),
        migrations.RemoveField(
            model_name='designedproduct',
            name='vendor_shop',
        ),
        migrations.RemoveField(
            model_name='designedproductimage',
            name='description',
        ),
        migrations.AlterField(
            model_name='designedproduct',
            name='base',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='shop.Product'),
        ),
        migrations.AddField(
            model_name='design',
            name='possible_products',
            field=models.ManyToManyField(related_name='designs', through='mukluk.DesignedProduct', to='shop.Product'),
        ),
        migrations.AddField(
            model_name='design',
            name='site',
            field=models.ForeignKey(editable=False, on_delete=django.db.models.deletion.CASCADE, to='sites.Site'),
        ),
        migrations.AddField(
            model_name='design',
            name='vendor_shop',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='designs', to='mukluk.VendorShop'),
        ),
        migrations.AddField(
            model_name='designasset',
            name='design',
            field=models.ForeignKey(default=0, on_delete=django.db.models.deletion.CASCADE, related_name='design_assets', to='mukluk.Design'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='designedproduct',
            name='design',
            field=models.ForeignKey(default=0, on_delete=django.db.models.deletion.CASCADE, to='mukluk.Design'),
            preserve_default=False,
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('utils', '0001_initial'),
        ('employee', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='CurrentEmploymentDetails',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('current_job_responsibilities',
                 models.TextField(
                     blank=True,
                     null=True,
                     verbose_name='Outline briefly current job responsibilities'
                 )),
                ('present_salary',
                 models.IntegerField(default=0, help_text='CTC P.A.')),
                ('role', models.CharField(blank=True,
                                          max_length=200,
                                          null=True)),
                ('e_shops',
                 models.CharField(blank=True, max_length=50, null=True)),
                ('date_of_acquisition',
                 models.CharField(blank=True, max_length=15, null=True)),
                ('date_of_vesting',
                 models.CharField(blank=True, max_length=15, null=True)),
                ('date_of_selling',
                 models.CharField(blank=True, max_length=15, null=True)),
                ('pan', models.CharField(blank=True, max_length=15,
                                         null=True)),
                ('id_type',
                 models.CharField(blank=True, max_length=70, null=True)),
                ('id_number',
                 models.CharField(blank=True, max_length=25, null=True)),
                ('pf_account',
                 models.CharField(blank=True, max_length=35, null=True)),
                ('remarks', models.TextField(blank=True, null=True)),
                ('created_on', models.DateTimeField(auto_now_add=True)),
                ('updated_on', models.DateTimeField(auto_now=True)),
            ],
        ),
        migrations.CreateModel(
            name='Department',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(blank=True,
                                          max_length=100,
                                          null=True)),
                ('created_on', models.DateTimeField(auto_now_add=True)),
                ('updated_on', models.DateTimeField(auto_now=True)),
            ],
        ),
        migrations.CreateModel(
            name='Designation',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(blank=True,
                                          max_length=100,
                                          null=True)),
                ('created_on', models.DateTimeField(auto_now_add=True)),
                ('updated_on', models.DateTimeField(auto_now=True)),
            ],
        ),
        migrations.CreateModel(
            name='FitnessDetail',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('height',
                 models.DecimalField(decimal_places=2,
                                     default=0.0,
                                     help_text='Height in Inches',
                                     max_digits=8)),
                ('weight',
                 models.DecimalField(decimal_places=2,
                                     default=0.0,
                                     help_text='Weight in Kgs',
                                     max_digits=8)),
                ('blood_group',
                 models.CharField(blank=True,
                                  choices=[('o_pos', 'O+'), ('o_neg', 'O-'),
                                           ('a_pos', 'A+'), ('a_neg', 'A-'),
                                           ('b_pos', 'B+'), ('b_neg', 'B-'),
                                           ('ab_pos', 'AB+'),
                                           ('ab_neg', 'AB-')],
                                  max_length=10,
                                  null=True)),
                ('medical_fitness', models.TextField(blank=True, null=True)),
                ('emergency_contact_person_name',
                 models.CharField(blank=True, max_length=35, null=True)),
                ('emergency_contact_person_phone',
                 models.CharField(blank=True, max_length=15, null=True)),
                ('emergency_contact_person_email',
                 models.EmailField(blank=True, max_length=35, null=True)),
                ('created_on', models.DateTimeField(auto_now_add=True)),
                ('updated_on', models.DateTimeField(auto_now=True)),
            ],
        ),
        migrations.CreateModel(
            name='PastEmployment',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('joining_date', models.DateField(blank=True, null=True)),
                ('leaving_date', models.DateField(blank=True, null=True)),
                ('organisation',
                 models.CharField(blank=True, max_length=100, null=True)),
                ('designation',
                 models.CharField(blank=True, max_length=100, null=True)),
                ('reporting_manager',
                 models.CharField(blank=True, max_length=100, null=True)),
                ('gross_compensation',
                 models.CharField(blank=True, max_length=20, null=True)),
                ('reason_for_change', models.TextField(blank=True, null=True)),
                ('total_experience',
                 models.CharField(blank=True,
                                  help_text='In year and months',
                                  max_length=20,
                                  null=True)),
                ('relevant_experience',
                 models.CharField(blank=True,
                                  help_text='In year and months',
                                  max_length=20,
                                  null=True)),
                ('created_on', models.DateTimeField(auto_now_add=True)),
                ('updated_on', models.DateTimeField(auto_now=True)),
            ],
        ),
        migrations.RemoveField(
            model_name='bankaccount',
            name='employee',
        ),
        migrations.RemoveField(
            model_name='currentaddress',
            name='employee',
        ),
        migrations.RemoveField(
            model_name='currentemployeedetails',
            name='employee',
        ),
        migrations.RemoveField(
            model_name='educationalqualification',
            name='degree',
        ),
        migrations.RemoveField(
            model_name='educationalqualification',
            name='employee',
        ),
        migrations.RemoveField(
            model_name='family',
            name='employee',
        ),
        migrations.RemoveField(
            model_name='joiningdetails',
            name='employee',
        ),
        migrations.RemoveField(
            model_name='pastemployee',
            name='employee',
        ),
        migrations.RemoveField(
            model_name='personaldetail',
            name='employee',
        ),
        migrations.RenameField(
            model_name='employmentagency',
            old_name='name',
            new_name='agency_name',
        ),
        migrations.RenameField(
            model_name='nominee',
            old_name='address_line_1',
            new_name='address',
        ),
        migrations.RenameField(
            model_name='permanentaddress',
            old_name='address_line_1',
            new_name='address',
        ),
        migrations.RemoveField(
            model_name='employee',
            name='alternate_phone',
        ),
        migrations.RemoveField(
            model_name='employee',
            name='email',
        ),
        migrations.RemoveField(
            model_name='employee',
            name='father_name',
        ),
        migrations.RemoveField(
            model_name='employee',
            name='mother_name',
        ),
        migrations.RemoveField(
            model_name='employee',
            name='name',
        ),
        migrations.RemoveField(
            model_name='employee',
            name='phone',
        ),
        migrations.RemoveField(
            model_name='employmentagency',
            name='employee',
        ),
        migrations.RemoveField(
            model_name='nominee',
            name='address_line_2',
        ),
        migrations.RemoveField(
            model_name='nominee',
            name='address_line_3',
        ),
        migrations.RemoveField(
            model_name='nominee',
            name='state',
        ),
        migrations.RemoveField(
            model_name='permanentaddress',
            name='address_line_2',
        ),
        migrations.RemoveField(
            model_name='permanentaddress',
            name='address_line_3',
        ),
        migrations.RemoveField(
            model_name='permanentaddress',
            name='employee',
        ),
        migrations.RemoveField(
            model_name='permanentaddress',
            name='name',
        ),
        migrations.RemoveField(
            model_name='permanentaddress',
            name='state',
        ),
        migrations.RemoveField(
            model_name='referral',
            name='employee',
        ),
        migrations.AddField(
            model_name='educationaldegree',
            name='employee',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='educational_degree',
                to='employee.Employee'),
        ),
        migrations.AddField(
            model_name='employee',
            name='aadhaar',
            field=models.CharField(blank=True, max_length=20, null=True),
        ),
        migrations.AddField(
            model_name='employee',
            name='bank',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to='utils.Bank'),
        ),
        migrations.AddField(
            model_name='employee',
            name='date_of_joining',
            field=models.DateField(blank=True, null=True),
        ),
        migrations.AddField(
            model_name='employee',
            name='date_of_leaving',
            field=models.DateField(blank=True, null=True),
        ),
        migrations.AddField(
            model_name='employee',
            name='employment_agency',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='emp_agency_employee',
                to='employee.EmploymentAgency'),
        ),
        migrations.AddField(
            model_name='employee',
            name='gender',
            field=models.CharField(choices=[('male', 'Male'),
                                            ('female', 'Female')],
                                   max_length=20,
                                   null=True),
        ),
        migrations.AddField(
            model_name='employee',
            name='marital_status',
            field=models.CharField(blank=True,
                                   choices=[('married', 'Married'),
                                            ('unmarried', 'Unmarried'),
                                            ('divorcee', 'Divorcee')],
                                   max_length=20,
                                   null=True),
        ),
        migrations.AddField(
            model_name='employee',
            name='pan',
            field=models.CharField(blank=True, max_length=20, null=True),
        ),
        migrations.AddField(
            model_name='employee',
            name='passport',
            field=models.CharField(blank=True, max_length=20, null=True),
        ),
        migrations.AddField(
            model_name='employee',
            name='permanent_address',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='permanent_address_employee',
                to='employee.PermanentAddress'),
        ),
        migrations.AddField(
            model_name='employee',
            name='referral',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='referral_employee',
                to='employee.Referral'),
        ),
        migrations.AddField(
            model_name='employee',
            name='status',
            field=models.CharField(choices=[('active', 'Active'),
                                            ('inactive', 'Inactive')],
                                   default='active',
                                   max_length=35,
                                   null=True),
        ),
        migrations.AddField(
            model_name='employee',
            name='username',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to=settings.AUTH_USER_MODEL),
        ),
        migrations.AlterField(
            model_name='employee',
            name='date_of_birth',
            field=models.DateField(blank=True, null=True),
        ),
        migrations.AlterField(
            model_name='employee',
            name='designation',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='employee_designation',
                to='employee.Designation'),
        ),
        migrations.AlterField(
            model_name='nominee',
            name='city',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to='utils.City'),
        ),
        migrations.AlterField(
            model_name='nominee',
            name='percentage_share',
            field=models.DecimalField(decimal_places=2,
                                      default=0.0,
                                      help_text='Max share is 100.00',
                                      max_digits=8),
        ),
        migrations.AlterField(
            model_name='permanentaddress',
            name='city',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to='utils.City'),
        ),
        migrations.AlterField(
            model_name='salary',
            name='food_allowance',
            field=models.IntegerField(blank=True,
                                      default=0,
                                      null=True,
                                      verbose_name='D. Food Allowance'),
        ),
        migrations.DeleteModel(name='BankAccount', ),
        migrations.DeleteModel(name='CurrentAddress', ),
        migrations.DeleteModel(name='CurrentEmployeeDetails', ),
        migrations.DeleteModel(name='EducationalQualification', ),
        migrations.DeleteModel(name='Family', ),
        migrations.DeleteModel(name='JoiningDetails', ),
        migrations.DeleteModel(name='PastEmployee', ),
        migrations.DeleteModel(name='PersonalDetail', ),
        migrations.AddField(
            model_name='currentemploymentdetails',
            name='department',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='current_employee_department',
                to='employee.Department'),
        ),
        migrations.AddField(
            model_name='currentemploymentdetails',
            name='designation',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='current_employee_designation',
                to='employee.Designation'),
        ),
        migrations.AddField(
            model_name='currentemploymentdetails',
            name='employee',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='current_emp_details',
                to='employee.Employee'),
        ),
        migrations.AddField(
            model_name='employee',
            name='department',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='employee_department',
                to='employee.Department'),
        ),
        migrations.AddField(
            model_name='employee',
            name='fitness_details',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to='employee.FitnessDetail'),
        ),
        migrations.AddField(
            model_name='employee',
            name='past_employment',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='past_emp_employee',
                to='employee.PastEmployment'),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('products', '0010_supernovaactivity'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='exhibition',
            options={
                'ordering':
                ['title', '-group__priority', 'group_order', '-priority']
            },
        ),
        migrations.AlterModelOptions(
            name='supernovaactivity',
            options={
                'verbose_name': 'ESO supernova activity',
                'verbose_name_plural': 'ESO supernova activities'
            },
        ),
        migrations.RemoveField(
            model_name='onlineart',
            name='credit',
        ),
        migrations.RemoveField(
            model_name='onlineartauthor',
            name='title',
        ),
        migrations.AlterField(
            model_name='annualreport',
            name='product',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='product.Product'),
        ),
        migrations.AlterField(
            model_name='apparel',
            name='product',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='product.Product'),
        ),
        migrations.AlterField(
            model_name='book',
            name='product',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='product.Product'),
        ),
        migrations.AlterField(
            model_name='brochure',
            name='product',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='product.Product'),
        ),
        migrations.AlterField(
            model_name='bulletin',
            name='product',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='product.Product'),
        ),
        migrations.AlterField(
            model_name='calendar',
            name='product',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='product.Product'),
        ),
        migrations.AlterField(
            model_name='capjournal',
            name='product',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='product.Product'),
        ),
        migrations.AlterField(
            model_name='conferenceitem',
            name='product',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='product.Product'),
        ),
        migrations.AlterField(
            model_name='conferenceposter',
            name='product',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='product.Product'),
        ),
        migrations.AlterField(
            model_name='donation',
            name='product',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='product.Product'),
        ),
        migrations.AlterField(
            model_name='educationalmaterial',
            name='product',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='product.Product'),
        ),
        migrations.AlterField(
            model_name='electronicposter',
            name='product',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='product.Product'),
        ),
        migrations.AlterField(
            model_name='flyer',
            name='product',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='product.Product'),
        ),
        migrations.AlterField(
            model_name='handout',
            name='product',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='product.Product'),
        ),
        migrations.AlterField(
            model_name='map',
            name='product',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='product.Product'),
        ),
        migrations.AlterField(
            model_name='media',
            name='product',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='product.Product'),
        ),
        migrations.AlterField(
            model_name='merchandise',
            name='product',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='product.Product'),
        ),
        migrations.AlterField(
            model_name='messenger',
            name='product',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='product.Product'),
        ),
        migrations.AlterField(
            model_name='mountedimage',
            name='product',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='product.Product'),
        ),
        migrations.AlterField(
            model_name='postcard',
            name='product',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='product.Product'),
        ),
        migrations.AlterField(
            model_name='printedposter',
            name='product',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='product.Product'),
        ),
        migrations.AlterField(
            model_name='scienceinschool',
            name='product',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='product.Product'),
        ),
        migrations.AlterField(
            model_name='stationery',
            name='product',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='product.Product'),
        ),
        migrations.AlterField(
            model_name='stecfnewsletter',
            name='product',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='product.Product'),
        ),
        migrations.AlterField(
            model_name='sticker',
            name='product',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='product.Product'),
        ),
        migrations.AlterField(
            model_name='supernovaactivity',
            name='product',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='product.Product'),
        ),
        migrations.AlterField(
            model_name='technicaldocument',
            name='product',
            field=models.OneToOneField(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='product.Product'),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('institucional', '0021_auto_20210412_0035'),
    ]

    operations = [
        migrations.CreateModel(
            name='home',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('slogan_home',
                 models.CharField(blank=True,
                                  max_length=255,
                                  verbose_name='Slogan do Home')),
                ('imageHome',
                 models.ImageField(blank=True,
                                   upload_to='imagens/',
                                   verbose_name='Imagem')),
                ('descricao_card',
                 models.TextField(blank=True,
                                  verbose_name='Descrição do Card')),
                ('preco_card',
                 models.IntegerField(default=0, verbose_name='Preço do Card')),
                ('data_modificacao',
                 models.DateTimeField(blank=True,
                                      default=datetime.datetime.now,
                                      verbose_name='Data de modificação')),
            ],
        ),
        migrations.CreateModel(
            name='pacotes',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('duracao_pacote',
                 models.CharField(max_length=30,
                                  verbose_name='Duração do Pacote')),
                ('quantidade_parcelas',
                 models.IntegerField(default=0,
                                     verbose_name='Quantidade de parcelas')),
                ('desconto',
                 models.IntegerField(default=0,
                                     verbose_name='Porcentagem de desconto')),
                ('atributos_pacote',
                 models.TextField(blank=True,
                                  verbose_name='Atributos do pacote')),
                ('data_modificacao',
                 models.DateTimeField(blank=True,
                                      default=datetime.datetime.now,
                                      verbose_name='Data de modificação')),
            ],
        ),
        migrations.DeleteModel(name='contato', ),
        migrations.DeleteModel(name='painel', ),
        migrations.RemoveField(
            model_name='servicos',
            name='preco_servico',
        ),
        migrations.AlterField(
            model_name='quemsomos',
            name='valores',
            field=models.TextField(blank=True,
                                   verbose_name='Valores da instituição'),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('main', '0005_squashed_v310_v313_updates'),
    ]

    replaces = replaces()

    operations = [
        # Release UJT unique_together constraint
        migrations.AlterUniqueTogether(
            name='unifiedjobtemplate',
            unique_together=set([]),
        ),
        # Inventory Refresh
        migrations.RenameField('InventorySource', 'group', 'deprecated_group'),
        migrations.AlterField(
            model_name='inventorysource',
            name='deprecated_group',
            field=models.OneToOneField(related_name='deprecated_inventory_source', on_delete=models.CASCADE, null=True, default=None, to='main.Group'),
        ),
        migrations.AlterField(
            model_name='inventorysource',
            name='inventory',
            field=models.ForeignKey(related_name='inventory_sources', default=None, to='main.Inventory', on_delete=models.CASCADE, null=True),
        ),
        # Smart Inventory
        migrations.AddField(
            model_name='inventory',
            name='host_filter',
            field=awx.main.fields.SmartFilterField(
                default=None, help_text='Filter that will be applied to the hosts of this inventory.', null=True, blank=True
            ),
        ),
        migrations.AddField(
            model_name='inventory',
            name='kind',
            field=models.CharField(
                default='',
                help_text='Kind of inventory being represented.',
                max_length=32,
                blank=True,
                choices=[('', 'Hosts have a direct link to this inventory.'), ('smart', 'Hosts for inventory generated using the host_filter property.')],
            ),
        ),
        migrations.CreateModel(
            name='SmartInventoryMembership',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('host', models.ForeignKey(related_name='+', on_delete=models.CASCADE, to='main.Host')),
            ],
        ),
        migrations.AddField(
            model_name='smartinventorymembership',
            name='inventory',
            field=models.ForeignKey(on_delete=models.CASCADE, related_name='+', to='main.Inventory'),
        ),
        migrations.AddField(
            model_name='host',
            name='smart_inventories',
            field=models.ManyToManyField(related_name='_host_smart_inventories_+', through='main.SmartInventoryMembership', to='main.Inventory'),
        ),
        migrations.AlterUniqueTogether(
            name='smartinventorymembership',
            unique_together=set([('host', 'inventory')]),
        ),
        # Background Inventory deletion
        migrations.AddField(
            model_name='inventory',
            name='pending_deletion',
            field=models.BooleanField(default=False, help_text='Flag indicating the inventory is being deleted.', editable=False),
        ),
        migrations.AlterField(
            model_name='inventory',
            name='organization',
            field=models.ForeignKey(
                related_name='inventories', on_delete=models.SET_NULL, to='main.Organization', help_text='Organization containing this inventory.', null=True
            ),
        ),
        # Facts
        migrations.AlterField(
            model_name='fact',
            name='facts',
            field=awx.main.fields.JSONBField(
                default=dict, help_text='Arbitrary JSON structure of module facts captured at timestamp for a single host.', blank=True
            ),
        ),
        migrations.AddField(
            model_name='host',
            name='ansible_facts',
            field=awx.main.fields.JSONBField(default=dict, help_text='Arbitrary JSON structure of most recent ansible_facts, per-host.', blank=True),
        ),
        migrations.AddField(
            model_name='host',
            name='ansible_facts_modified',
            field=models.DateTimeField(default=None, help_text='The date and time ansible_facts was last modified.', null=True, editable=False),
        ),
        migrations.AddField(
            model_name='job',
            name='use_fact_cache',
            field=models.BooleanField(
                default=False,
                help_text='If enabled, Tower will act as an Ansible Fact Cache Plugin; persisting facts at the end of a playbook run to the database and caching facts for use by Ansible.',
            ),
        ),
        migrations.AddField(
            model_name='jobtemplate',
            name='use_fact_cache',
            field=models.BooleanField(
                default=False,
                help_text='If enabled, Tower will act as an Ansible Fact Cache Plugin; persisting facts at the end of a playbook run to the database and caching facts for use by Ansible.',
            ),
        ),
        migrations.RunSQL(
            [("CREATE INDEX host_ansible_facts_default_gin ON %s USING gin" "(ansible_facts jsonb_path_ops);", [AsIs(Host._meta.db_table)])],
            [('DROP INDEX host_ansible_facts_default_gin;', None)],
        ),
        # SCM file-based inventories
        migrations.AddField(
            model_name='inventorysource',
            name='scm_last_revision',
            field=models.CharField(default='', max_length=1024, editable=False, blank=True),
        ),
        migrations.AddField(
            model_name='inventorysource',
            name='source_project',
            field=models.ForeignKey(
                related_name='scm_inventory_sources',
                on_delete=models.CASCADE,
                default=None,
                blank=True,
                to='main.Project',
                help_text='Project containing inventory file used as source.',
                null=True,
            ),
        ),
        migrations.AddField(
            model_name='inventoryupdate',
            name='source_project_update',
            field=models.ForeignKey(
                related_name='scm_inventory_updates',
                on_delete=models.CASCADE,
                default=None,
                blank=True,
                to='main.ProjectUpdate',
                help_text='Inventory files from this Project Update were used for the inventory update.',
                null=True,
            ),
        ),
        migrations.AddField(
            model_name='project',
            name='inventory_files',
            field=awx.main.fields.JSONField(
                default=[],
                help_text='Suggested list of content that could be Ansible inventory in the project',
                verbose_name='Inventory Files',
                editable=False,
                blank=True,
            ),
        ),
        migrations.AlterField(
            model_name='inventorysource',
            name='source',
            field=models.CharField(
                default='',
                max_length=32,
                blank=True,
                choices=[
                    ('', 'Manual'),
                    ('file', 'File, Directory or Script'),
                    ('scm', 'Sourced from a Project'),
                    ('ec2', 'Amazon EC2'),
                    ('gce', 'Google Compute Engine'),
                    ('azure_rm', 'Microsoft Azure Resource Manager'),
                    ('vmware', 'VMware vCenter'),
                    ('satellite6', 'Red Hat Satellite 6'),
                    ('cloudforms', 'Red Hat CloudForms'),
                    ('openstack', 'OpenStack'),
                    ('custom', 'Custom Script'),
                ],
            ),
        ),
        migrations.AlterField(
            model_name='inventoryupdate',
            name='source',
            field=models.CharField(
                default='',
                max_length=32,
                blank=True,
                choices=[
                    ('', 'Manual'),
                    ('file', 'File, Directory or Script'),
                    ('scm', 'Sourced from a Project'),
                    ('ec2', 'Amazon EC2'),
                    ('gce', 'Google Compute Engine'),
                    ('azure_rm', 'Microsoft Azure Resource Manager'),
                    ('vmware', 'VMware vCenter'),
                    ('satellite6', 'Red Hat Satellite 6'),
                    ('cloudforms', 'Red Hat CloudForms'),
                    ('openstack', 'OpenStack'),
                    ('custom', 'Custom Script'),
                ],
            ),
        ),
        migrations.AlterField(
            model_name='inventorysource',
            name='source_path',
            field=models.CharField(default='', max_length=1024, blank=True),
        ),
        migrations.AlterField(
            model_name='inventoryupdate',
            name='source_path',
            field=models.CharField(default='', max_length=1024, blank=True),
        ),
        migrations.AlterField(
            model_name='unifiedjob',
            name='launch_type',
            field=models.CharField(
                default='manual',
                max_length=20,
                editable=False,
                choices=[
                    ('manual', 'Manual'),
                    ('relaunch', 'Relaunch'),
                    ('callback', 'Callback'),
                    ('scheduled', 'Scheduled'),
                    ('dependency', 'Dependency'),
                    ('workflow', 'Workflow'),
                    ('sync', 'Sync'),
                    ('scm', 'SCM Update'),
                ],
            ),
        ),
        migrations.AddField(
            model_name='inventorysource',
            name='update_on_project_update',
            field=models.BooleanField(default=False),
        ),
        # Named URL
        migrations.AlterField(
            model_name='notificationtemplate',
            name='name',
            field=models.CharField(max_length=512),
        ),
        migrations.AlterField(
            model_name='notificationtemplate',
            name='organization',
            field=models.ForeignKey(related_name='notification_templates', on_delete=models.CASCADE, to='main.Organization', null=True),
        ),
        migrations.AlterUniqueTogether(
            name='notificationtemplate',
            unique_together=set([('organization', 'name')]),
        ),
        # Add verbosity option to inventory updates
        migrations.AddField(
            model_name='inventorysource',
            name='verbosity',
            field=models.PositiveIntegerField(default=1, blank=True, choices=[(0, '0 (WARNING)'), (1, '1 (INFO)'), (2, '2 (DEBUG)')]),
        ),
        migrations.AddField(
            model_name='inventoryupdate',
            name='verbosity',
            field=models.PositiveIntegerField(default=1, blank=True, choices=[(0, '0 (WARNING)'), (1, '1 (INFO)'), (2, '2 (DEBUG)')]),
        ),
        # Job Templates
        migrations.AddField(
            model_name='jobtemplate',
            name='ask_verbosity_on_launch',
            field=models.BooleanField(default=False),
        ),
        # Workflows
        migrations.AddField(
            model_name='workflowjob',
            name='allow_simultaneous',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='workflowjobtemplate',
            name='allow_simultaneous',
            field=models.BooleanField(default=False),
        ),
        # Permission and Deprecated Field Removal
        migrations.RemoveField(
            model_name='permission',
            name='created_by',
        ),
        migrations.RemoveField(
            model_name='permission',
            name='inventory',
        ),
        migrations.RemoveField(
            model_name='permission',
            name='modified_by',
        ),
        migrations.RemoveField(
            model_name='permission',
            name='project',
        ),
        migrations.RemoveField(
            model_name='permission',
            name='tags',
        ),
        migrations.RemoveField(
            model_name='permission',
            name='team',
        ),
        migrations.RemoveField(
            model_name='permission',
            name='user',
        ),
        migrations.RemoveField(
            model_name='activitystream',
            name='permission',
        ),
        migrations.RemoveField(
            model_name='credential',
            name='deprecated_team',
        ),
        migrations.RemoveField(
            model_name='credential',
            name='deprecated_user',
        ),
        migrations.RemoveField(
            model_name='organization',
            name='deprecated_admins',
        ),
        migrations.RemoveField(
            model_name='organization',
            name='deprecated_projects',
        ),
        migrations.RemoveField(
            model_name='organization',
            name='deprecated_users',
        ),
        migrations.RemoveField(
            model_name='team',
            name='deprecated_projects',
        ),
        migrations.RemoveField(
            model_name='team',
            name='deprecated_users',
        ),
        migrations.DeleteModel(
            name='Permission',
        ),
        # Insights
        migrations.AddField(
            model_name='host',
            name='insights_system_id',
            field=models.TextField(default=None, help_text='Red Hat Insights host unique identifier.', null=True, db_index=True, blank=True),
        ),
        migrations.AddField(
            model_name='inventory',
            name='insights_credential',
            field=models.ForeignKey(
                related_name='insights_inventories',
                on_delete=models.SET_NULL,
                default=None,
                blank=True,
                to='main.Credential',
                help_text='Credentials to be used by hosts belonging to this inventory when accessing Red Hat Insights API.',
                null=True,
            ),
        ),
        migrations.AlterField(
            model_name='inventory',
            name='kind',
            field=models.CharField(
                default='',
                help_text='Kind of inventory being represented.',
                max_length=32,
                blank=True,
                choices=[('', 'Hosts have a direct link to this inventory.'), ('smart', 'Hosts for inventory generated using the host_filter property.')],
            ),
        ),
        # Timeout help text update
        migrations.AlterField(
            model_name='inventorysource',
            name='timeout',
            field=models.IntegerField(default=0, help_text='The amount of time (in seconds) to run before the task is canceled.', blank=True),
        ),
        migrations.AlterField(
            model_name='inventoryupdate',
            name='timeout',
            field=models.IntegerField(default=0, help_text='The amount of time (in seconds) to run before the task is canceled.', blank=True),
        ),
        migrations.AlterField(
            model_name='job',
            name='timeout',
            field=models.IntegerField(default=0, help_text='The amount of time (in seconds) to run before the task is canceled.', blank=True),
        ),
        migrations.AlterField(
            model_name='jobtemplate',
            name='timeout',
            field=models.IntegerField(default=0, help_text='The amount of time (in seconds) to run before the task is canceled.', blank=True),
        ),
        migrations.AlterField(
            model_name='project',
            name='timeout',
            field=models.IntegerField(default=0, help_text='The amount of time (in seconds) to run before the task is canceled.', blank=True),
        ),
        migrations.AlterField(
            model_name='projectupdate',
            name='timeout',
            field=models.IntegerField(default=0, help_text='The amount of time (in seconds) to run before the task is canceled.', blank=True),
        ),
        migrations.AddField(
            model_name='adhoccommand',
            name='diff_mode',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='jobtemplate',
            name='ask_diff_mode_on_launch',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='job',
            name='diff_mode',
            field=models.BooleanField(
                default=False, help_text='If enabled, textual changes made to any templated files on the host are shown in the standard output'
            ),
        ),
        migrations.AddField(
            model_name='jobtemplate',
            name='diff_mode',
            field=models.BooleanField(
                default=False, help_text='If enabled, textual changes made to any templated files on the host are shown in the standard output'
            ),
        ),
        migrations.CreateModel(
            name='CredentialType',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('created', models.DateTimeField(default=None, editable=False)),
                ('modified', models.DateTimeField(default=None, editable=False)),
                ('description', models.TextField(default='', blank=True)),
                ('name', models.CharField(max_length=512)),
                (
                    'kind',
                    models.CharField(
                        max_length=32,
                        choices=[
                            ('ssh', 'Machine'),
                            ('vault', 'Vault'),
                            ('net', 'Network'),
                            ('scm', 'Source Control'),
                            ('cloud', 'Cloud'),
                            ('insights', 'Insights'),
                        ],
                    ),
                ),
                ('managed_by_tower', models.BooleanField(default=False, editable=False)),
                (
                    'inputs',
                    awx.main.fields.CredentialTypeInputField(
                        default=dict,
                        blank=True,
                        help_text='Enter inputs using either JSON or YAML syntax. Use the radio button to toggle between the two. Refer to the Ansible Tower documentation for example syntax.',
                    ),
                ),
                (
                    'injectors',
                    awx.main.fields.CredentialTypeInjectorField(
                        default=dict,
                        blank=True,
                        help_text='Enter injectors using either JSON or YAML syntax. Use the radio button to toggle between the two. Refer to the Ansible Tower documentation for example syntax.',
                    ),
                ),
                (
                    'created_by',
                    models.ForeignKey(
                        related_name="{u'class': 'credentialtype', u'app_label': 'main'}(class)s_created+",
                        on_delete=models.SET_NULL,
                        default=None,
                        editable=False,
                        to=settings.AUTH_USER_MODEL,
                        null=True,
                    ),
                ),
                (
                    'modified_by',
                    models.ForeignKey(
                        related_name="{u'class': 'credentialtype', u'app_label': 'main'}(class)s_modified+",
                        on_delete=models.SET_NULL,
                        default=None,
                        editable=False,
                        to=settings.AUTH_USER_MODEL,
                        null=True,
                    ),
                ),
                (
                    'tags',
                    taggit.managers.TaggableManager(
                        to='taggit.Tag', through='taggit.TaggedItem', blank=True, help_text='A comma-separated list of tags.', verbose_name='Tags'
                    ),
                ),
            ],
            options={
                'ordering': ('kind', 'name'),
            },
        ),
        migrations.AlterModelOptions(
            name='credential',
            options={'ordering': ('name',)},
        ),
        migrations.AddField(
            model_name='credential',
            name='inputs',
            field=awx.main.fields.CredentialInputField(default=dict, blank=True),
        ),
        migrations.AddField(
            model_name='credential',
            name='credential_type',
            field=models.ForeignKey(related_name='credentials', on_delete=models.CASCADE, to='main.CredentialType', null=True),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='job',
            name='vault_credential',
            field=models.ForeignKey(
                related_name='jobs_as_vault_credential+', on_delete=models.SET_NULL, default=None, blank=True, to='main.Credential', null=True
            ),
        ),
        migrations.AddField(
            model_name='jobtemplate',
            name='vault_credential',
            field=models.ForeignKey(
                related_name='jobtemplates_as_vault_credential+', on_delete=models.SET_NULL, default=None, blank=True, to='main.Credential', null=True
            ),
        ),
        migrations.AddField(
            model_name='job',
            name='extra_credentials',
            field=models.ManyToManyField(related_name='_job_extra_credentials_+', to='main.Credential'),
        ),
        migrations.AddField(
            model_name='jobtemplate',
            name='extra_credentials',
            field=models.ManyToManyField(related_name='_jobtemplate_extra_credentials_+', to='main.Credential'),
        ),
        migrations.AlterUniqueTogether(
            name='credential',
            unique_together=set([('organization', 'name', 'credential_type')]),
        ),
        migrations.AlterField(
            model_name='credential',
            name='become_method',
            field=models.CharField(
                default='',
                help_text='Privilege escalation method.',
                max_length=32,
                blank=True,
                choices=[
                    ('', 'None'),
                    ('sudo', 'Sudo'),
                    ('su', 'Su'),
                    ('pbrun', 'Pbrun'),
                    ('pfexec', 'Pfexec'),
                    ('dzdo', 'DZDO'),
                    ('pmrun', 'Pmrun'),
                    ('runas', 'Runas'),
                ],
            ),
        ),
        # Connecting activity stream
        migrations.AddField(
            model_name='activitystream',
            name='credential_type',
            field=models.ManyToManyField(to='main.CredentialType', blank=True),
        ),
        migrations.CreateModel(
            name='InstanceGroup',
            fields=[
                ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
                ('name', models.CharField(unique=True, max_length=250)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('modified', models.DateTimeField(auto_now=True)),
                (
                    'controller',
                    models.ForeignKey(
                        related_name='controlled_groups',
                        on_delete=models.CASCADE,
                        default=None,
                        editable=False,
                        to='main.InstanceGroup',
                        help_text='Instance Group to remotely control this group.',
                        null=True,
                    ),
                ),
                (
                    'instances',
                    models.ManyToManyField(
                        help_text='Instances that are members of this InstanceGroup', related_name='rampart_groups', editable=False, to='main.Instance'
                    ),
                ),
            ],
        ),
        migrations.AddField(
            model_name='inventory',
            name='instance_groups',
            field=models.ManyToManyField(to='main.InstanceGroup', blank=True),
        ),
        migrations.AddField(
            model_name='unifiedjob',
            name='instance_group',
            field=models.ForeignKey(
                on_delete=models.SET_NULL, default=None, blank=True, to='main.InstanceGroup', help_text='The Instance group the job was run under', null=True
            ),
        ),
        migrations.AddField(
            model_name='unifiedjobtemplate',
            name='instance_groups',
            field=models.ManyToManyField(to='main.InstanceGroup', blank=True),
        ),
        migrations.AddField(
            model_name='organization',
            name='instance_groups',
            field=models.ManyToManyField(to='main.InstanceGroup', blank=True),
        ),
        migrations.AddField(
            model_name='activitystream',
            name='instance_group',
            field=models.ManyToManyField(to='main.InstanceGroup', blank=True),
        ),
        migrations.AddField(
            model_name='instance',
            name='last_isolated_check',
            field=models.DateTimeField(editable=False, null=True),
        ),
        # Migrations that don't change db schema but simply to make Django ORM happy.
        # e.g. Choice updates, help_text updates, etc.
        migrations.AlterField(
            model_name='schedule',
            name='enabled',
            field=models.BooleanField(default=True, help_text='Enables processing of this schedule.'),
        ),
        migrations.AlterField(
            model_name='unifiedjob',
            name='execution_node',
            field=models.TextField(default='', help_text='The node the job executed on.', editable=False, blank=True),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('publisher', '0088_delete_enable_email_notifications_switch'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='course',
            name='changed_by',
        ),
        migrations.RemoveField(
            model_name='course',
            name='keywords',
        ),
        migrations.RemoveField(
            model_name='course',
            name='level_type',
        ),
        migrations.RemoveField(
            model_name='course',
            name='organizations',
        ),
        migrations.RemoveField(
            model_name='course',
            name='primary_subject',
        ),
        migrations.RemoveField(
            model_name='course',
            name='secondary_subject',
        ),
        migrations.RemoveField(
            model_name='course',
            name='tertiary_subject',
        ),
        migrations.AlterUniqueTogether(
            name='courseentitlement',
            unique_together=set(),
        ),
        migrations.RemoveField(
            model_name='courseentitlement',
            name='course',
        ),
        migrations.RemoveField(
            model_name='courseentitlement',
            name='currency',
        ),
        migrations.RemoveField(
            model_name='courserun',
            name='changed_by',
        ),
        migrations.RemoveField(
            model_name='courserun',
            name='course',
        ),
        migrations.RemoveField(
            model_name='courserun',
            name='language',
        ),
        migrations.RemoveField(
            model_name='courserun',
            name='sponsor',
        ),
        migrations.RemoveField(
            model_name='courserun',
            name='staff',
        ),
        migrations.RemoveField(
            model_name='courserun',
            name='transcript_languages',
        ),
        migrations.RemoveField(
            model_name='courserun',
            name='video_language',
        ),
        migrations.RemoveField(
            model_name='courserunstate',
            name='changed_by',
        ),
        migrations.RemoveField(
            model_name='courserunstate',
            name='course_run',
        ),
        migrations.RemoveField(
            model_name='coursestate',
            name='changed_by',
        ),
        migrations.RemoveField(
            model_name='coursestate',
            name='course',
        ),
        migrations.AlterUniqueTogether(
            name='courseuserrole',
            unique_together=set(),
        ),
        migrations.RemoveField(
            model_name='courseuserrole',
            name='changed_by',
        ),
        migrations.RemoveField(
            model_name='courseuserrole',
            name='course',
        ),
        migrations.RemoveField(
            model_name='courseuserrole',
            name='user',
        ),
        migrations.RemoveField(
            model_name='historicalcourse',
            name='changed_by',
        ),
        migrations.RemoveField(
            model_name='historicalcourse',
            name='history_user',
        ),
        migrations.RemoveField(
            model_name='historicalcourse',
            name='level_type',
        ),
        migrations.RemoveField(
            model_name='historicalcourse',
            name='primary_subject',
        ),
        migrations.RemoveField(
            model_name='historicalcourse',
            name='secondary_subject',
        ),
        migrations.RemoveField(
            model_name='historicalcourse',
            name='tertiary_subject',
        ),
        migrations.RemoveField(
            model_name='historicalcourserun',
            name='changed_by',
        ),
        migrations.RemoveField(
            model_name='historicalcourserun',
            name='course',
        ),
        migrations.RemoveField(
            model_name='historicalcourserun',
            name='history_user',
        ),
        migrations.RemoveField(
            model_name='historicalcourserun',
            name='language',
        ),
        migrations.RemoveField(
            model_name='historicalcourserun',
            name='video_language',
        ),
        migrations.RemoveField(
            model_name='historicalcourserunstate',
            name='changed_by',
        ),
        migrations.RemoveField(
            model_name='historicalcourserunstate',
            name='course_run',
        ),
        migrations.RemoveField(
            model_name='historicalcourserunstate',
            name='history_user',
        ),
        migrations.RemoveField(
            model_name='historicalcoursestate',
            name='changed_by',
        ),
        migrations.RemoveField(
            model_name='historicalcoursestate',
            name='course',
        ),
        migrations.RemoveField(
            model_name='historicalcoursestate',
            name='history_user',
        ),
        migrations.RemoveField(
            model_name='historicalcourseuserrole',
            name='changed_by',
        ),
        migrations.RemoveField(
            model_name='historicalcourseuserrole',
            name='course',
        ),
        migrations.RemoveField(
            model_name='historicalcourseuserrole',
            name='history_user',
        ),
        migrations.RemoveField(
            model_name='historicalcourseuserrole',
            name='user',
        ),
        migrations.RemoveField(
            model_name='historicalseat',
            name='changed_by',
        ),
        migrations.RemoveField(
            model_name='historicalseat',
            name='course_run',
        ),
        migrations.RemoveField(
            model_name='historicalseat',
            name='currency',
        ),
        migrations.RemoveField(
            model_name='historicalseat',
            name='history_user',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='changed_by',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='course_run',
        ),
        migrations.RemoveField(
            model_name='seat',
            name='currency',
        ),
        migrations.DeleteModel(name='PublisherUser', ),
        migrations.DeleteModel(name='Course', ),
        migrations.DeleteModel(name='CourseEntitlement', ),
        migrations.DeleteModel(name='CourseRun', ),
        migrations.DeleteModel(name='CourseRunState', ),
        migrations.DeleteModel(name='CourseState', ),
        migrations.DeleteModel(name='CourseUserRole', ),
        migrations.DeleteModel(name='HistoricalCourse', ),
        migrations.DeleteModel(name='HistoricalCourseRun', ),
        migrations.DeleteModel(name='HistoricalCourseRunState', ),
        migrations.DeleteModel(name='HistoricalCourseState', ),
        migrations.DeleteModel(name='HistoricalCourseUserRole', ),
        migrations.DeleteModel(name='HistoricalSeat', ),
        migrations.DeleteModel(name='Seat', ),
    ]
class Migration(migrations.Migration):

    dependencies = [("quantified_flu", "0002_account_publish_symptom_reports")]

    operations = [migrations.RemoveField(model_name="account", name="public_data")]
class Migration(migrations.Migration):

    dependencies = [
        ('products', '0009_auto_20180127_1451'),
    ]

    operations = [
        migrations.CreateModel(
            name='Brand',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title',
                 models.CharField(max_length=255, verbose_name='Название')),
            ],
        ),
        migrations.CreateModel(
            name='Category',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title',
                 models.CharField(max_length=255, verbose_name='Название')),
                ('lft',
                 models.PositiveIntegerField(db_index=True, editable=False)),
                ('rght',
                 models.PositiveIntegerField(db_index=True, editable=False)),
                ('tree_id',
                 models.PositiveIntegerField(db_index=True, editable=False)),
                ('level',
                 models.PositiveIntegerField(db_index=True, editable=False)),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.CreateModel(
            name='Feature',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title',
                 models.CharField(max_length=255, verbose_name='Значение')),
            ],
        ),
        migrations.CreateModel(
            name='FeatureCategory',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title',
                 models.CharField(max_length=255, verbose_name='Название')),
                ('icon',
                 models.ImageField(blank=True,
                                   null=True,
                                   upload_to='images/',
                                   verbose_name='Иконка')),
            ],
        ),
        migrations.CreateModel(
            name='Product1',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name_of_product',
                 models.CharField(blank=True,
                                  default=None,
                                  max_length=64,
                                  null=True,
                                  verbose_name='Наименование товара')),
                ('description',
                 models.TextField(blank=True,
                                  default=None,
                                  null=True,
                                  verbose_name='Описание')),
                ('short_description',
                 models.TextField(blank=True,
                                  default=None,
                                  null=True,
                                  verbose_name='Краткое описание')),
                ('price',
                 models.DecimalField(decimal_places=2,
                                     default=0,
                                     max_digits=10,
                                     verbose_name='Цена')),
                ('discount',
                 models.IntegerField(default=0, verbose_name='Скидка')),
                ('created',
                 models.DateTimeField(auto_now_add=True,
                                      verbose_name='Создан')),
                ('updated',
                 models.DateTimeField(auto_now=True, verbose_name='Обновлен')),
                ('category',
                 models.ForeignKey(blank=True,
                                   default=None,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to='products.ProductCategory',
                                   verbose_name='Категория')),
            ],
            options={
                'verbose_name': 'Продукция',
                'verbose_name_plural': 'Продукция',
            },
        ),
        migrations.CreateModel(
            name='ProductFeature',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('filter_key', models.CharField(blank=True, max_length=255)),
                ('feature',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='products.Feature')),
                ('feature_category',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='products.FeatureCategory')),
            ],
        ),
        migrations.AlterModelOptions(
            name='product',
            options={},
        ),
        migrations.RemoveField(
            model_name='product',
            name='created',
        ),
        migrations.RemoveField(
            model_name='product',
            name='description',
        ),
        migrations.RemoveField(
            model_name='product',
            name='discount',
        ),
        migrations.RemoveField(
            model_name='product',
            name='name_of_product',
        ),
        migrations.RemoveField(
            model_name='product',
            name='price',
        ),
        migrations.RemoveField(
            model_name='product',
            name='short_description',
        ),
        migrations.RemoveField(
            model_name='product',
            name='updated',
        ),
        migrations.AddField(
            model_name='product',
            name='title',
            field=models.CharField(default=4,
                                   max_length=255,
                                   verbose_name='Название'),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='product',
            name='category',
            field=models.ForeignKey(
                default=4,
                on_delete=django.db.models.deletion.CASCADE,
                to='products.Category',
                verbose_name='Категория'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='productfeature',
            name='product',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='products.Product'),
        ),
        migrations.AddField(
            model_name='feature',
            name='category',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='products.FeatureCategory'),
        ),
        migrations.AddField(
            model_name='category',
            name='feature_category',
            field=models.ManyToManyField(blank=True,
                                         null=True,
                                         to='products.FeatureCategory',
                                         verbose_name='Характеристики'),
        ),
        migrations.AddField(
            model_name='product',
            name='brand',
            field=models.ForeignKey(
                default=5,
                on_delete=django.db.models.deletion.CASCADE,
                to='products.Brand',
                verbose_name='Бренд'),
            preserve_default=False,
        ),
    ]
示例#12
0
class Migration(migrations.Migration):

    dependencies = [
        ('home', '0050_auto_20170710_2010'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='fridaysermonpage',
            name='f_sermon_main_title_1',
        ),
        migrations.RemoveField(
            model_name='fridaysermonpage',
            name='f_sermon_main_title_2',
        ),
        migrations.AddField(
            model_name='fridaysermonpage',
            name='f_sermon_bible_1',
            field=models.CharField(default='요한 계시록', max_length=100),
        ),
        migrations.AddField(
            model_name='fridaysermonpage',
            name='f_sermon_bible_1_main_title_1',
            field=models.CharField(default='최신 요한계시록 강해 영상', max_length=100),
        ),
        migrations.AddField(
            model_name='fridaysermonpage',
            name='f_sermon_bible_1_main_title_2',
            field=models.CharField(default='지난 요한계시록 강해 영상들', max_length=100),
        ),
        migrations.AddField(
            model_name='fridaysermonpage',
            name='f_sermon_bible_2',
            field=models.CharField(default='로마서', max_length=100),
        ),
        migrations.AddField(
            model_name='fridaysermonpage',
            name='f_sermon_bible_2_main_title_1',
            field=models.CharField(default='최신 로마서 강해 영상', max_length=100),
        ),
        migrations.AddField(
            model_name='fridaysermonpage',
            name='f_sermon_bible_2_main_title_2',
            field=models.CharField(default='지난 로마서 강해 영상들', max_length=100),
        ),
        migrations.AddField(
            model_name='fridaysermonpage',
            name='f_sermon_bible_3',
            field=models.CharField(default='빌립보서', max_length=100),
        ),
        migrations.AddField(
            model_name='fridaysermonpage',
            name='f_sermon_bible_3_main_title_1',
            field=models.CharField(default='최신 빌립보서 강해 영상', max_length=100),
        ),
        migrations.AddField(
            model_name='fridaysermonpage',
            name='f_sermon_bible_3_main_title_2',
            field=models.CharField(default='지난 빌립보서 강해 영상들', max_length=100),
        ),
        migrations.AddField(
            model_name='fridaysermonpage',
            name='f_sermon_bible_4',
            field=models.CharField(default='시편', max_length=100),
        ),
        migrations.AddField(
            model_name='fridaysermonpage',
            name='f_sermon_bible_4_main_title_1',
            field=models.CharField(default='최신 시편 강해 영상', max_length=100),
        ),
        migrations.AddField(
            model_name='fridaysermonpage',
            name='f_sermon_bible_4_main_title_2',
            field=models.CharField(default='지난 시편 강해 영상들', max_length=100),
        ),
    ]
示例#13
0
class Migration(migrations.Migration):

    dependencies = [
        ('iwansell', '0005_auto_20190814_0142'),
    ]

    operations = [
        migrations.CreateModel(
            name='Channel',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('channel', models.CharField(max_length=200)),
                ('catch', models.CharField(max_length=100)),
                ('logo', models.FileField(upload_to='')),
                ('date',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('account',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Account')),
                ('campus',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Campus')),
            ],
        ),
        migrations.CreateModel(
            name='Comment',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('comment', models.TextField()),
                ('date',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('account',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Account')),
            ],
            options={
                'ordering': ['-date'],
            },
        ),
        migrations.CreateModel(
            name='CommentVote',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('upvote', models.BooleanField(default=False)),
                ('downvote', models.BooleanField(default=False)),
                ('date',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('account',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Account')),
                ('comment',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Comment')),
            ],
        ),
        migrations.CreateModel(
            name='Following',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('date',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('account',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Account')),
                ('channel',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Channel')),
            ],
            options={
                'ordering': ['-date'],
            },
        ),
        migrations.CreateModel(
            name='Reply',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('reply', models.TextField()),
                ('date',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('account',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Account')),
                ('comment',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Comment')),
            ],
            options={
                'ordering': ['-date'],
            },
        ),
        migrations.CreateModel(
            name='Reply1',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('reply_t', models.TextField()),
                ('date',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('account',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Account')),
                ('reply',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Reply')),
            ],
            options={
                'ordering': ['-date'],
            },
        ),
        migrations.CreateModel(
            name='Reply1Vote',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('upvote', models.BooleanField(default=False)),
                ('downvote', models.BooleanField(default=False)),
                ('date',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('account',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Account')),
                ('reply1',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Reply1')),
            ],
        ),
        migrations.CreateModel(
            name='Reply2',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('reply', models.TextField()),
                ('date',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('account',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Account')),
                ('reply1',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Reply1')),
            ],
            options={
                'ordering': ['-date'],
            },
        ),
        migrations.CreateModel(
            name='Reply2Vote',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('upvote', models.BooleanField(default=False)),
                ('downvote', models.BooleanField(default=False)),
                ('date',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('account',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Account')),
                ('reply2',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Reply2')),
            ],
        ),
        migrations.CreateModel(
            name='Reply3',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('reply', models.TextField()),
                ('date',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('account',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Account')),
                ('reply2',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Reply2')),
            ],
            options={
                'ordering': ['-date'],
            },
        ),
        migrations.CreateModel(
            name='Reply3Vote',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('upvote', models.BooleanField(default=False)),
                ('downvote', models.BooleanField(default=False)),
                ('date',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('account',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Account')),
                ('reply3',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Reply3')),
            ],
        ),
        migrations.CreateModel(
            name='Reply4',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('reply', models.TextField()),
                ('date',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('account',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Account')),
                ('reply3',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Reply3')),
            ],
            options={
                'ordering': ['-date'],
            },
        ),
        migrations.CreateModel(
            name='Reply4Vote',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('upvote', models.BooleanField(default=False)),
                ('downvote', models.BooleanField(default=False)),
                ('date',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('account',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Account')),
                ('reply4',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Reply4')),
            ],
        ),
        migrations.CreateModel(
            name='ReplyVote',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('upvote', models.BooleanField(default=False)),
                ('downvote', models.BooleanField(default=False)),
                ('date',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('account',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Account')),
                ('reply',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Reply')),
            ],
        ),
        migrations.CreateModel(
            name='Thread',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(max_length=200)),
                ('thread', models.TextField()),
                ('media', models.FileField(upload_to='')),
                ('date',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('account',
                 models.ForeignKey(default=4,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Account')),
                ('campus',
                 models.ForeignKey(default=1,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Campus')),
                ('channel',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Channel')),
            ],
            options={
                'ordering': ['-date'],
            },
        ),
        migrations.CreateModel(
            name='ThreadVote',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('upvote', models.BooleanField(default=False)),
                ('downvote', models.BooleanField(default=False)),
                ('date',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('account',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Account')),
                ('thread',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='iwansell.Thread')),
            ],
        ),
        migrations.AlterModelOptions(
            name='clientratereview',
            options={},
        ),
        migrations.AlterModelOptions(
            name='eshopratereview',
            options={},
        ),
        migrations.AlterModelOptions(
            name='ratereview',
            options={'ordering': ['-date']},
        ),
        migrations.RemoveField(
            model_name='clientratereview',
            name='date',
        ),
        migrations.RemoveField(
            model_name='eshopratereview',
            name='date',
        ),
        migrations.AddField(
            model_name='comment',
            name='thread',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='iwansell.Thread'),
        ),
    ]
示例#14
0
class Migration(migrations.Migration):

    dependencies = [
        ('updd', '0002_auto_20190205_2330'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='medecin',
            name='dossiermedical',
        ),
        migrations.AddField(
            model_name='personnel',
            name='dossiermedical',
            field=models.ManyToManyField(related_name='travaille_sur',
                                         to='updd.DossierMedical'),
        ),
        migrations.AlterField(
            model_name='operation',
            name='type',
            field=models.CharField(choices=[('Chirurgie', 'Chirurgie'),
                                            ('Anesthésie', 'Anesthésie'),
                                            ('Obstétrique', 'Obstétrique')],
                                   max_length=20,
                                   verbose_name="Type de l'opération"),
        ),
        migrations.AlterField(
            model_name='ordonnance',
            name='texte',
            field=models.TextField(verbose_name='Contenu ordonnance'),
        ),
        migrations.AlterField(
            model_name='patient',
            name='adresse',
            field=models.CharField(max_length=150, verbose_name='Adresse'),
        ),
        migrations.AlterField(
            model_name='patient',
            name='date_naissance',
            field=models.DateField(verbose_name='Date de naissance'),
        ),
        migrations.AlterField(
            model_name='patient',
            name='nom',
            field=models.CharField(max_length=100, verbose_name='Nom'),
        ),
        migrations.AlterField(
            model_name='patient',
            name='numsecu',
            field=models.CharField(max_length=15,
                                   verbose_name='Numéro sécurite sociale'),
        ),
        migrations.AlterField(
            model_name='patient',
            name='prenom',
            field=models.CharField(max_length=100, verbose_name='Prenom'),
        ),
        migrations.AlterField(
            model_name='patient',
            name='telephone',
            field=models.CharField(max_length=15, verbose_name='Téléphone'),
        ),
        migrations.AlterField(
            model_name='personnel',
            name='adresse',
            field=models.CharField(max_length=150, verbose_name='Adresse'),
        ),
        migrations.AlterField(
            model_name='personnel',
            name='telephone',
            field=models.CharField(max_length=15, verbose_name='Téléphone'),
        ),
        migrations.AlterField(
            model_name='structure',
            name='nom',
            field=models.CharField(max_length=100, verbose_name='Nom'),
        ),
    ]
示例#15
0
class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('main', '0003_auto_20200830_0701'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='issue',
            name='category',
        ),
        migrations.RemoveField(
            model_name='issue',
            name='is_open',
        ),
        migrations.RemoveField(
            model_name='issue',
            name='user',
        ),
        migrations.AddField(
            model_name='issue',
            name='assignee',
            field=models.ForeignKey(
                default=1,
                on_delete=django.db.models.deletion.SET_DEFAULT,
                related_name='assignee',
                to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='issue',
            name='closed',
            field=models.DateField(blank=True, null=True),
        ),
        migrations.AddField(
            model_name='issue',
            name='creator',
            field=models.ForeignKey(
                default=1,
                on_delete=django.db.models.deletion.SET_DEFAULT,
                related_name='creator',
                to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='issue',
            name='opened',
            field=models.DateField(default=datetime.date(2020, 8, 30)),
        ),
        migrations.AddField(
            model_name='issue',
            name='status',
            field=models.CharField(choices=[('open', 'open'),
                                            ('in progress', 'in progress'),
                                            ('resolved', 'resolved'),
                                            ('closed', 'closed'),
                                            ('duplicate', 'duplicate')],
                                   default='open',
                                   max_length=30),
        ),
        migrations.AlterField(
            model_name='issue',
            name='priority',
            field=models.CharField(choices=[('critical', 'critical'),
                                            ('high', 'high'),
                                            ('normal', 'normal'),
                                            ('low', 'low')],
                                   default='low',
                                   max_length=30),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('nino', '0011_auto_20191008_1856'),
    ]

    operations = [
        migrations.CreateModel(
            name='Area_Dental',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('diagnostico', models.TextField()),
                ('intervencion', models.TextField()),
                ('proxima_cita', models.DateField()),
                ('estado', models.BooleanField(default=True)),
            ],
            options={
                'verbose_name': 'Area_Dental',
                'verbose_name_plural': 'Area_Dentals',
            },
        ),
        migrations.CreateModel(
            name='Area_Medica',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('peso', models.IntegerField()),
                ('altura', models.FloatField()),
                ('presencia_piojos', models.BooleanField()),
                ('presencia_acaros', models.BooleanField()),
                ('programa_vacunacion', models.BooleanField()),
                ('examen_sangre', models.BooleanField()),
                ('examne_orina', models.BooleanField()),
                ('estado_piel', models.TextField()),
            ],
            options={
                'verbose_name': 'Area_Medica',
                'verbose_name_plural': 'Area_Medicas',
            },
        ),
        migrations.CreateModel(
            name='Area_Psicologica',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('estado_emocional', models.TextField(null=True)),
                ('aspecto_clinico', models.TextField(null=True)),
                ('percepcion_situacion_desproteccion', models.BooleanField()),
                ('percepcion_calidad_vida', models.BooleanField()),
                ('percepcion_temores_actuales', models.TextField(null=True)),
                ('percepcion_temores_futuros', models.TextField(null=True)),
            ],
            options={
                'verbose_name': 'Area_Psicologica',
                'verbose_name_plural': 'Area_Psicologicas',
            },
        ),
        migrations.CreateModel(
            name='Area_Social',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('rol_familiar', models.TextField(null=True)),
                ('visitas_autorizadas', models.BooleanField()),
                ('recurso_familiar', models.CharField(max_length=60, null=True)),
            ],
            options={
                'verbose_name': 'Area_Social',
                'verbose_name_plural': 'Area_Socials',
            },
        ),
        migrations.CreateModel(
            name='Enfermedad',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nombre_enfermedad', models.CharField(max_length=60)),
                ('descripcion', models.TextField()),
                ('estado', models.BooleanField(default=True)),
            ],
            options={
                'verbose_name': 'Enfermedad',
                'verbose_name_plural': 'Enfermedads',
            },
        ),
        migrations.CreateModel(
            name='Etnia',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nombre_etnia', models.CharField(max_length=60)),
                ('estado', models.BooleanField(default=True)),
            ],
            options={
                'verbose_name': 'Etnia',
                'verbose_name_plural': 'Etnias',
            },
        ),
        migrations.CreateModel(
            name='Fuente_Estre',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nombre_fuente', models.CharField(max_length=60)),
                ('descripcion', models.TextField()),
                ('estado', models.BooleanField(default=True)),
            ],
            options={
                'verbose_name': 'Fuente_Estre',
                'verbose_name_plural': 'Fuente_Estres',
            },
        ),
        migrations.CreateModel(
            name='Idioma',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nombre_idioma', models.CharField(max_length=60)),
                ('estado', models.BooleanField(default=True)),
            ],
            options={
                'verbose_name': 'Idioma',
                'verbose_name_plural': 'Idiomas',
            },
        ),
        migrations.CreateModel(
            name='Nino',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('fecha_evaluacion', models.DateField()),
                ('nombre_nino', models.CharField(max_length=60)),
                ('apellido_nino', models.CharField(max_length=60)),
                ('image', models.ImageField(upload_to='img')),
                ('cui', models.CharField(max_length=60)),
                ('sexo', models.CharField(max_length=3)),
                ('grado_educativo', models.CharField(max_length=30, null=True)),
                ('fecha_nacimiento', models.DateField()),
                ('lugar_nacimiento', models.CharField(max_length=60)),
                ('lugar_residencia', models.CharField(max_length=60)),
                ('ocupacion', models.CharField(max_length=60, null=True)),
                ('religion', models.CharField(max_length=30, null=True)),
                ('nombre_madre', models.CharField(max_length=100)),
                ('nombre_padre', models.CharField(max_length=100)),
                ('fecha_ingreso', models.DateField()),
                ('estado', models.BooleanField(default=True)),
                ('etnia', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='nino.Etnia')),
                ('idioma', models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='nino.Idioma')),
            ],
            options={
                'verbose_name': 'Nino',
                'verbose_name_plural': 'Ninos',
            },
        ),
        migrations.CreateModel(
            name='Relacion_Familia',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('tipo_relacion', models.CharField(max_length=60)),
            ],
            options={
                'verbose_name': 'Relacion_Familia',
                'verbose_name_plural': 'Relacion_Familias',
            },
        ),
        migrations.DeleteModel(
            name='Registro_Enfermedade',
        ),
        migrations.DeleteModel(
            name='Registro_etnia',
        ),
        migrations.DeleteModel(
            name='Registro_Idioma',
        ),
        migrations.AlterModelOptions(
            name='nivel_nutricion',
            options={'verbose_name': 'Nivel_Nutricion', 'verbose_name_plural': 'Nivel_Nutricions'},
        ),
        migrations.RemoveField(
            model_name='motivo_ingreso',
            name='nombre',
        ),
        migrations.RemoveField(
            model_name='nivel_nutricion',
            name='nombre',
        ),
        migrations.AddField(
            model_name='motivo_ingreso',
            name='descripcion',
            field=models.TextField(default=1),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='motivo_ingreso',
            name='estado',
            field=models.BooleanField(default=True),
        ),
        migrations.AddField(
            model_name='motivo_ingreso',
            name='nombre_motivo',
            field=models.CharField(default=1, max_length=60),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='nivel_nutricion',
            name='descripcion',
            field=models.TextField(default=1),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='nivel_nutricion',
            name='estado',
            field=models.BooleanField(default=True),
        ),
        migrations.AddField(
            model_name='nivel_nutricion',
            name='nivel',
            field=models.CharField(default=1, max_length=60),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='nino',
            name='motivo_ingreso',
            field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='nino.Motivo_Ingreso'),
        ),
        migrations.AddField(
            model_name='area_social',
            name='fuente_estres',
            field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='nino.Fuente_Estre'),
        ),
        migrations.AddField(
            model_name='area_social',
            name='nino',
            field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='nino.Nino'),
        ),
        migrations.AddField(
            model_name='area_social',
            name='relacion_familiar',
            field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='nino.Relacion_Familia'),
        ),
        migrations.AddField(
            model_name='area_psicologica',
            name='enfermedad',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='nino.Enfermedad'),
        ),
        migrations.AddField(
            model_name='area_psicologica',
            name='nino',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='nino.Nino'),
        ),
        migrations.AddField(
            model_name='area_medica',
            name='nino',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='nino.Nino'),
        ),
        migrations.AddField(
            model_name='area_medica',
            name='nivel_nutricion',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='nino.Nivel_Nutricion'),
        ),
        migrations.AddField(
            model_name='area_dental',
            name='nino',
            field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='nino.Nino'),
        ),
    ]
class Migration(migrations.Migration):

    replaces = [(b'pootle_store', '0027_unit_created_by'),
                (b'pootle_store', '0028_set_created_by'),
                (b'pootle_store', '0029_unit_tablename'),
                (b'pootle_store', '0030_store_tablename'),
                (b'pootle_store', '0031_suggestion_tablename'),
                (b'pootle_store', '0032_qc_tablename'),
                (b'pootle_store', '0033_conditionally_remove_unit_created_by'),
                (b'pootle_store', '0034_unitsource'),
                (b'pootle_store', '0035_set_created_by_again'),
                (b'pootle_store', '0036_unitchange'),
                (b'pootle_store', '0037_unitsource_fields'),
                (b'pootle_store', '0038_suggestion_tmp_state'),
                (b'pootle_store', '0039_set_suggestion_tmp_state'),
                (b'pootle_store', '0040_remove_suggestion_state'),
                (b'pootle_store', '0041_suggestionstate'),
                (b'pootle_store', '0042_add_default_suggestion_states'),
                (b'pootle_store', '0043_suggestion_state'),
                (b'pootle_store', '0044_set_new_suggestion_states'),
                (b'pootle_store', '0045_remove_suggestion_tmp_state'),
                (b'pootle_store', '0046_unit_source_one_to_one'),
                (b'pootle_store', '0047_remove_old_unit_fields'),
                (b'pootle_store', '0048_set_change_commented'),
                (b'pootle_store', '0049_remove_unit_commented'),
                (b'pootle_store', '0050_set_change_reviewed'),
                (b'pootle_store', '0051_remove_unit_reviewed'),
                (b'pootle_store', '0052_set_change_submitted'),
                (b'pootle_store', '0053_remove_unit_submitted'),
                (b'pootle_store', '0054_clean_abs_file_paths'),
                (b'pootle_store', '0055_fill_unit_source_data')]

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('pootle_store', '0026_suggestion_on_delete_user'),
    ]

    operations = [
        migrations.AlterModelTable(
            name='unit',
            table='pootle_store_unit',
        ),
        migrations.AlterModelTable(
            name='store',
            table='pootle_store_store',
        ),
        migrations.AlterModelTable(
            name='suggestion',
            table='pootle_store_suggestion',
        ),
        migrations.AlterModelTable(
            name='qualitycheck',
            table='pootle_store_qualitycheck',
        ),
        migrations.CreateModel(
            name='UnitSource',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('created_with', models.IntegerField(db_index=True,
                                                     default=5)),
                ('created_by',
                 models.ForeignKey(default=pootle.core.user.get_system_user_id,
                                   on_delete=models.SET(
                                       pootle.core.user.get_system_user),
                                   related_name='created_units',
                                   to=settings.AUTH_USER_MODEL)),
                ('unit',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='unit_source',
                     to='pootle_store.Unit')),
                ('source_hash',
                 models.CharField(editable=False, max_length=32, null=True)),
                ('source_length',
                 models.SmallIntegerField(default=0, editable=False)),
                ('source_wordcount',
                 models.SmallIntegerField(default=0, editable=False)),
            ],
            options={
                'abstract': False,
                'db_table': 'pootle_store_unit_source',
            },
        ),
        migrations.CreateModel(
            name='UnitChange',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('changed_with', models.IntegerField(db_index=True)),
                ('submitted_on', models.DateTimeField(db_index=True,
                                                      null=True)),
                ('commented_on', models.DateTimeField(db_index=True,
                                                      null=True)),
                ('reviewed_on', models.DateTimeField(db_index=True,
                                                     null=True)),
                ('commented_by',
                 models.ForeignKey(null=True,
                                   on_delete=models.SET(
                                       pootle.core.user.get_system_user),
                                   related_name='units_commented',
                                   to=settings.AUTH_USER_MODEL)),
                ('reviewed_by',
                 models.ForeignKey(null=True,
                                   on_delete=models.SET(
                                       pootle.core.user.get_system_user),
                                   related_name='units_reviewed',
                                   to=settings.AUTH_USER_MODEL)),
                ('submitted_by',
                 models.ForeignKey(null=True,
                                   on_delete=models.SET(
                                       pootle.core.user.get_system_user),
                                   related_name='units_submitted',
                                   to=settings.AUTH_USER_MODEL)),
                ('unit',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='change',
                     to='pootle_store.Unit')),
            ],
            options={
                'abstract': False,
                'db_table': 'pootle_store_unit_change',
            },
        ),
        migrations.RunPython(convert_unit_source_change),
        migrations.RunPython(remove_fields, ),
        RemoveFieldIfExists(
            model_name='unit',
            name='source_hash',
        ),
        RemoveFieldIfExists(
            model_name='unit',
            name='source_length',
        ),
        RemoveFieldIfExists(
            model_name='unit',
            name='source_wordcount',
        ),
        RemoveFieldIfExists(
            model_name='unit',
            name='commented_by',
        ),
        RemoveFieldIfExists(
            model_name='unit',
            name='commented_on',
        ),
        RemoveFieldIfExists(
            model_name='unit',
            name='reviewed_by',
        ),
        RemoveFieldIfExists(
            model_name='unit',
            name='reviewed_on',
        ),
        RemoveFieldIfExists(
            model_name='unit',
            name='submitted_by',
        ),
        RemoveFieldIfExists(
            model_name='unit',
            name='submitted_on',
        ),
        migrations.AlterField(
            model_name='unitchange',
            name='commented_by',
            field=models.ForeignKey(null=True,
                                    on_delete=models.SET(
                                        pootle.core.user.get_system_user),
                                    related_name='commented',
                                    to=settings.AUTH_USER_MODEL),
        ),
        migrations.AlterField(
            model_name='unitchange',
            name='reviewed_by',
            field=models.ForeignKey(null=True,
                                    on_delete=models.SET(
                                        pootle.core.user.get_system_user),
                                    related_name='reviewed',
                                    to=settings.AUTH_USER_MODEL),
        ),
        migrations.AlterField(
            model_name='unitchange',
            name='submitted_by',
            field=models.ForeignKey(null=True,
                                    on_delete=models.SET(
                                        pootle.core.user.get_system_user),
                                    related_name='submitted',
                                    to=settings.AUTH_USER_MODEL),
        ),
        migrations.CreateModel(
            name='SuggestionState',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(db_index=True, max_length=16)),
            ],
            options={
                'abstract': False,
                'db_table': 'pootle_store_suggestion_state',
            },
        ),
        migrations.RunPython(add_default_suggestion_states),
        migrations.RenameField(model_name='suggestion',
                               old_name="state",
                               new_name="tmp_state"),
        migrations.AddField(
            model_name='suggestion',
            name='state',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                related_name='suggestions',
                to='pootle_store.SuggestionState'),
        ),
        migrations.RunPython(set_suggestion_states),
        migrations.RemoveField(
            model_name='suggestion',
            name='tmp_state',
        ),
        migrations.RunPython(clean_abs_file_paths)
    ]
示例#18
0
class Migration(migrations.Migration):

    dependencies = [
        ('wiki', '0002_auto_20170712_1412'),
    ]

    operations = [
        migrations.CreateModel(
            name='ArticleCategory',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=100,
                                          verbose_name='name')),
                ('slug', models.SlugField(verbose_name='slug')),
                ('active',
                 models.BooleanField(default=True, verbose_name='active')),
                ('description', models.TextField(blank=True, null=True)),
                ('lft',
                 models.PositiveIntegerField(db_index=True, editable=False)),
                ('rght',
                 models.PositiveIntegerField(db_index=True, editable=False)),
                ('tree_id',
                 models.PositiveIntegerField(db_index=True, editable=False)),
                ('level',
                 models.PositiveIntegerField(db_index=True, editable=False)),
            ],
            options={
                'verbose_name': 'article category',
                'verbose_name_plural': 'article categories',
                'ordering': ('tree_id', 'lft'),
                'abstract': False,
            },
            managers=[
                ('tree', django.db.models.manager.Manager()),
            ],
        ),
        migrations.RemoveField(
            model_name='article',
            name='categories',
        ),
        migrations.AlterField(
            model_name='categoryrelation',
            name='content_type',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='cat_rel',
                to='contenttypes.ContentType',
                verbose_name='content type'),
        ),
        migrations.AddField(
            model_name='articlecategory',
            name='article',
            field=models.OneToOneField(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='category',
                to='wiki.Article'),
        ),
        migrations.AddField(
            model_name='articlecategory',
            name='member_articles',
            field=models.ManyToManyField(blank=True,
                                         related_name='categories',
                                         to='wiki.Article'),
        ),
        migrations.AddField(
            model_name='articlecategory',
            name='parent',
            field=mptt.fields.TreeForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='children',
                to='wiki.ArticleCategory',
                verbose_name='parent'),
        ),
        migrations.AlterUniqueTogether(
            name='articlecategory',
            unique_together=set([('parent', 'name')]),
        ),
    ]
示例#19
0
class Migration(migrations.Migration):

    dependencies = [
        ('course_metadata', '0026_auto_20160912_2146'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='historicalcourse',
            name='history_user',
        ),
        migrations.RemoveField(
            model_name='historicalcourse',
            name='level_type',
        ),
        migrations.RemoveField(
            model_name='historicalcourse',
            name='partner',
        ),
        migrations.RemoveField(
            model_name='historicalcourse',
            name='video',
        ),
        migrations.RemoveField(
            model_name='historicalcourserun',
            name='course',
        ),
        migrations.RemoveField(
            model_name='historicalcourserun',
            name='history_user',
        ),
        migrations.RemoveField(
            model_name='historicalcourserun',
            name='language',
        ),
        migrations.RemoveField(
            model_name='historicalcourserun',
            name='syllabus',
        ),
        migrations.RemoveField(
            model_name='historicalcourserun',
            name='video',
        ),
        migrations.RemoveField(
            model_name='historicalorganization',
            name='history_user',
        ),
        migrations.RemoveField(
            model_name='historicalorganization',
            name='partner',
        ),
        migrations.RemoveField(
            model_name='historicalperson',
            name='history_user',
        ),
        migrations.RemoveField(
            model_name='historicalperson',
            name='partner',
        ),
        migrations.RemoveField(
            model_name='historicalseat',
            name='course_run',
        ),
        migrations.RemoveField(
            model_name='historicalseat',
            name='currency',
        ),
        migrations.RemoveField(
            model_name='historicalseat',
            name='history_user',
        ),
        migrations.DeleteModel(name='HistoricalCourse', ),
        migrations.DeleteModel(name='HistoricalCourseRun', ),
        migrations.DeleteModel(name='HistoricalOrganization', ),
        migrations.DeleteModel(name='HistoricalPerson', ),
        migrations.DeleteModel(name='HistoricalSeat', ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('programs', '0010_auto_20170204_2332'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='programsapiconfig',
            name='api_version_number',
        ),
        migrations.RemoveField(
            model_name='programsapiconfig',
            name='authoring_app_css_path',
        ),
        migrations.RemoveField(
            model_name='programsapiconfig',
            name='authoring_app_js_path',
        ),
        migrations.RemoveField(
            model_name='programsapiconfig',
            name='cache_ttl',
        ),
        migrations.RemoveField(
            model_name='programsapiconfig',
            name='enable_certification',
        ),
        migrations.RemoveField(
            model_name='programsapiconfig',
            name='enable_student_dashboard',
        ),
        migrations.RemoveField(
            model_name='programsapiconfig',
            name='enable_studio_tab',
        ),
        migrations.RemoveField(
            model_name='programsapiconfig',
            name='internal_service_url',
        ),
        migrations.RemoveField(
            model_name='programsapiconfig',
            name='max_retries',
        ),
        migrations.RemoveField(
            model_name='programsapiconfig',
            name='program_details_enabled',
        ),
        migrations.RemoveField(
            model_name='programsapiconfig',
            name='program_listing_enabled',
        ),
        migrations.RemoveField(
            model_name='programsapiconfig',
            name='public_service_url',
        ),
        migrations.RemoveField(
            model_name='programsapiconfig',
            name='xseries_ad_enabled',
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('publications', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Church',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=30)),
            ],
        ),
        migrations.CreateModel(
            name='IllustrationLayoutType',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=30)),
            ],
        ),
        migrations.CreateModel(
            name='Owner',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=30)),
            ],
        ),
        migrations.CreateModel(
            name='SpecialOccasion',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=30)),
            ],
        ),
        migrations.RenameField(
            model_name='publication',
            old_name='found_at',
            new_name='collection_venue',
        ),
        migrations.RenameField(
            model_name='publication',
            old_name='usage',
            new_name='comments',
        ),
        migrations.RenameField(
            model_name='publication',
            old_name='title',
            new_name='title_translation',
        ),
        migrations.RemoveField(
            model_name='publication',
            name='year',
        ),
        migrations.AddField(
            model_name='language',
            name='name',
            field=models.CharField(default='default', max_length=30),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='publication',
            name='author',
            field=models.ManyToManyField(to='publications.Author'),
        ),
        migrations.AddField(
            model_name='publication',
            name='collection_country',
            field=django_countries.fields.CountryField(default='Netherlands', max_length=2),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='publication',
            name='collection_date',
            field=models.DateField(default=django.utils.timezone.now),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='publication',
            name='copyrights',
            field=models.NullBooleanField(),
        ),
        migrations.AddField(
            model_name='publication',
            name='country',
            field=django_countries.fields.CountryField(default='Netherlands', max_length=2),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='publication',
            name='nr_of_pages',
            field=models.IntegerField(default=10),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='publication',
            name='printed_by',
            field=models.CharField(default='Emmanuel', max_length=30),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='publication',
            name='publication_date',
            field=models.DateField(default=django.utils.timezone.now),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='publication',
            name='title_subtitle_european',
            field=models.CharField(default='something cyrillic', max_length=100),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='publication',
            name='title_subtitle_transcription',
            field=models.CharField(default='some title', max_length=100),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='publication',
            name='venue',
            field=models.CharField(default='restaurant venue', max_length=30),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='author',
            name='year_of_birth',
            field=models.IntegerField(validators=[django.core.validators.MinValueValidator(1850), publications.models.max_value_current_year], verbose_name='year_of_birth'),
        ),
        migrations.RemoveField(
            model_name='publication',
            name='language',
        ),
        migrations.AddField(
            model_name='publication',
            name='language',
            field=models.ManyToManyField(to='publications.Language'),
        ),
        migrations.AddField(
            model_name='publication',
            name='church',
            field=models.ManyToManyField(to='publications.Church'),
        ),
        migrations.AddField(
            model_name='publication',
            name='currently_owned_by',
            field=models.ManyToManyField(to='publications.Owner'),
        ),
        migrations.AddField(
            model_name='publication',
            name='illustration_and_layout',
            field=models.ManyToManyField(to='publications.IllustrationLayoutType'),
        ),
        migrations.AddField(
            model_name='publication',
            name='special_occasion',
            field=models.ManyToManyField(to='publications.SpecialOccasion'),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('student', '0003_antireqs_prereqs_studentcourseinfo'),
    ]

    operations = [
        migrations.AlterUniqueTogether(
            name='antireqs',
            unique_together=None,
        ),
        migrations.RemoveField(
            model_name='antireqs',
            name='antiReq',
        ),
        migrations.RemoveField(
            model_name='antireqs',
            name='course',
        ),
        migrations.RemoveField(
            model_name='course',
            name='Instructor',
        ),
        migrations.RemoveField(
            model_name='course',
            name='major',
        ),
        migrations.RemoveField(
            model_name='majorcourses',
            name='course',
        ),
        migrations.RemoveField(
            model_name='majorcourses',
            name='major',
        ),
        migrations.RemoveField(
            model_name='minorcourses',
            name='course',
        ),
        migrations.RemoveField(
            model_name='minorcourses',
            name='minor',
        ),
        migrations.AlterUniqueTogether(
            name='prereqs',
            unique_together=None,
        ),
        migrations.RemoveField(
            model_name='prereqs',
            name='course',
        ),
        migrations.RemoveField(
            model_name='prereqs',
            name='preReq',
        ),
        migrations.RemoveField(
            model_name='student',
            name='major',
        ),
        migrations.AlterUniqueTogether(
            name='studentcourseinfo',
            unique_together=None,
        ),
        migrations.RemoveField(
            model_name='studentcourseinfo',
            name='course',
        ),
        migrations.RemoveField(
            model_name='studentcourseinfo',
            name='roll_number',
        ),
        migrations.DeleteModel(
            name='Advisor',
        ),
        migrations.DeleteModel(
            name='antiReqs',
        ),
        migrations.DeleteModel(
            name='Course',
        ),
        migrations.DeleteModel(
            name='Instructor',
        ),
        migrations.DeleteModel(
            name='Major',
        ),
        migrations.DeleteModel(
            name='majorCourses',
        ),
        migrations.DeleteModel(
            name='Minor',
        ),
        migrations.DeleteModel(
            name='minorCourses',
        ),
        migrations.DeleteModel(
            name='preReqs',
        ),
        migrations.DeleteModel(
            name='Student',
        ),
        migrations.DeleteModel(
            name='studentCourseInfo',
        ),
    ]
示例#23
0
class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ("item", "0001_initial"),
        ("home", "0003_profile"),
    ]

    operations = [
        migrations.RemoveField(
            model_name="profile",
            name="user",
        ),
        migrations.CreateModel(
            name="SellerProfile",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("photo", models.URLField(blank=True, null=True)),
                ("timestamp_created",
                 models.DateTimeField(auto_now=True, null=True)),
                ("last_updated", models.DateTimeField(auto_now=True,
                                                      null=True)),
                (
                    "reviews",
                    models.OneToOneField(
                        blank=True,
                        null=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="sellerprofile_reviews",
                        to="item.Review",
                    ),
                ),
                (
                    "user",
                    models.OneToOneField(
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="sellerprofile_user",
                        to=settings.AUTH_USER_MODEL,
                    ),
                ),
            ],
        ),
        migrations.CreateModel(
            name="CustomerProfile",
            fields=[
                (
                    "id",
                    models.AutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                ("photo", models.URLField(blank=True, null=True)),
                ("timestamp_created",
                 models.DateTimeField(auto_now=True, null=True)),
                ("last_updated", models.DateTimeField(auto_now=True,
                                                      null=True)),
                (
                    "user",
                    models.OneToOneField(
                        on_delete=django.db.models.deletion.CASCADE,
                        related_name="customerprofile_user",
                        to=settings.AUTH_USER_MODEL,
                    ),
                ),
            ],
        ),
    ]
示例#24
0
class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('blog', '0004_auto_20180419_2100'),
    ]

    operations = [
        migrations.CreateModel(
            name='ClassList',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('course_type', models.CharField(choices=[('online', '网络班'), ('offline_weekend', '面授班(周末)'), ('offline_fulltime', '面授班(脱产)')], max_length=32, verbose_name='课程类型')),
                ('semester', models.IntegerField(verbose_name='学期')),
                ('start_date', models.DateField(verbose_name='开班日期')),
                ('graduate_date', models.DateField(blank=True, null=True, verbose_name='结业日期')),
            ],
            options={
                'verbose_name': '班级列表',
                'verbose_name_plural': '班级列表',
            },
        ),
        migrations.CreateModel(
            name='ConsultRecord',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('note', models.TextField(verbose_name='跟进内容...')),
                ('status', models.IntegerField(choices=[(1, '近期无报名计划'), (2, '2个月内报名'), (3, '1个月内报名'), (4, '2周内报名'), (5, '1周内报名'), (6, '2天内报名'), (7, '已报名')], help_text='选择客户此时的状态', verbose_name='状态')),
                ('date', models.DateField(auto_now_add=True, verbose_name='跟进日期')),
            ],
            options={
                'verbose_name': '客户咨询跟进记录',
                'verbose_name_plural': '客户咨询跟进记录',
            },
        ),
        migrations.CreateModel(
            name='Course',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=128, unique=True, verbose_name='课程名称')),
                ('price', models.IntegerField(verbose_name='面授价格')),
                ('online_price', models.IntegerField(verbose_name='网络班价格')),
                ('brief', models.TextField(verbose_name='课程简介')),
            ],
            options={
                'verbose_name': '课程表',
                'verbose_name_plural': '课程表',
            },
        ),
        migrations.CreateModel(
            name='CourseRecord',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('day_num', models.IntegerField(help_text='此处填写第几节课或第几天课程...,必须为数字', verbose_name='节次')),
                ('date', models.DateField(auto_now_add=True, verbose_name='上课日期')),
                ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='blog.ClassList', verbose_name='班级(课程)')),
            ],
            options={
                'verbose_name': '上课纪录',
                'verbose_name_plural': '上课纪录',
            },
        ),
        migrations.CreateModel(
            name='Customer',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('qq', models.CharField(max_length=64, unique=True, verbose_name='QQ号')),
                ('name', models.CharField(blank=True, max_length=32, null=True, verbose_name='姓名')),
                ('phone', models.BigIntegerField(blank=True, null=True, verbose_name='手机号')),
                ('stu_id', models.CharField(blank=True, max_length=64, null=True, verbose_name='学号')),
                ('source', models.CharField(choices=[('qq', 'qq群'), ('referral', '内部转介绍'), ('51cto', '51cto'), ('agent', '招生代理'), ('others', '其它')], default='qq', max_length=64, verbose_name='客户来源')),
                ('class_type', models.CharField(choices=[('online', '网络班'), ('offline_weekend', '面授班(周末)'), ('offline_fulltime', '面授班(脱产)')], max_length=64, verbose_name='班级类型')),
                ('customer_note', models.TextField(help_text='客户咨询的大概情况,客户个人信息备注等...', verbose_name='客户咨询内容详情')),
                ('status', models.CharField(choices=[('signed', '已报名'), ('unregistered', '未报名'), ('graduated', '已毕业')], default='unregistered', help_text='选择客户此时的状态', max_length=64, verbose_name='状态')),
                ('date', models.DateField(auto_now_add=True, verbose_name='咨询日期')),
                ('class_list', models.ManyToManyField(blank=True, to='blog.ClassList', verbose_name='已报班级')),
            ],
            options={
                'verbose_name': '学员表',
                'verbose_name_plural': '学员表',
            },
        ),
        migrations.CreateModel(
            name='School',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=64, unique=True, verbose_name='校区名称')),
                ('addr', models.CharField(max_length=128, verbose_name='地址')),
            ],
            options={
                'verbose_name': '校区表',
                'verbose_name_plural': '校区表',
            },
        ),
        migrations.CreateModel(
            name='StudyRecord',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('record', models.CharField(choices=[('checked', '已签到'), ('late', '迟到'), ('noshow', '缺勤'), ('leave_early', '早退')], default='checked', max_length=64, verbose_name='上课纪录')),
                ('score', models.IntegerField(choices=[(100, 'A+'), (90, 'A'), (85, 'B+'), (80, 'B'), (70, 'B-'), (60, 'C+'), (50, 'C'), (40, 'C-'), (0, 'D'), (-1, 'N/A'), (-100, 'COPY'), (-1000, 'FAIL')], default=-1, verbose_name='本节成绩')),
                ('date', models.DateTimeField(auto_now_add=True)),
                ('note', models.CharField(blank=True, max_length=255, null=True, verbose_name='备注')),
                ('course_record', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='blog.CourseRecord', verbose_name='第几天课程')),
                ('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='blog.Customer', verbose_name='学员')),
            ],
            options={
                'verbose_name': '学员学习纪录',
                'verbose_name_plural': '学员学习纪录',
            },
        ),
        migrations.CreateModel(
            name='UserProfile',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=32, verbose_name='姓名')),
                ('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': '校内工作人员表',
                'verbose_name_plural': '校内工作人员表',
            },
        ),
        migrations.RemoveField(
            model_name='authordetail',
            name='author',
        ),
        migrations.RemoveField(
            model_name='book',
            name='authors',
        ),
        migrations.RemoveField(
            model_name='book',
            name='publisher',
        ),
        migrations.DeleteModel(
            name='Author',
        ),
        migrations.DeleteModel(
            name='AuthorDetail',
        ),
        migrations.DeleteModel(
            name='Book',
        ),
        migrations.DeleteModel(
            name='Publisher',
        ),
        migrations.AddField(
            model_name='school',
            name='staffs',
            field=models.ManyToManyField(blank=True, to='blog.UserProfile'),
        ),
        migrations.AddField(
            model_name='customer',
            name='consultant',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='blog.UserProfile', verbose_name='课程顾问'),
        ),
        migrations.AddField(
            model_name='customer',
            name='course',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='blog.Course', verbose_name='咨询课程'),
        ),
        migrations.AddField(
            model_name='customer',
            name='referral_from',
            field=models.ForeignKey(blank=True, help_text='若此客户是转介绍自内部学员,请在此处选择内部学员姓名', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='internal_referral', to='blog.Customer', verbose_name='转介绍自学员'),
        ),
        migrations.AddField(
            model_name='courserecord',
            name='teacher',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='blog.UserProfile', verbose_name='讲师'),
        ),
        migrations.AddField(
            model_name='consultrecord',
            name='consultant',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='blog.UserProfile', verbose_name='跟踪人'),
        ),
        migrations.AddField(
            model_name='consultrecord',
            name='customer',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='blog.Customer', verbose_name='所咨询客户'),
        ),
        migrations.AddField(
            model_name='classlist',
            name='course',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='blog.Course'),
        ),
        migrations.AddField(
            model_name='classlist',
            name='teachers',
            field=models.ManyToManyField(to='blog.UserProfile', verbose_name='讲师'),
        ),
        migrations.AlterUniqueTogether(
            name='studyrecord',
            unique_together={('course_record', 'student')},
        ),
        migrations.AlterUniqueTogether(
            name='courserecord',
            unique_together={('course', 'day_num')},
        ),
        migrations.AlterUniqueTogether(
            name='classlist',
            unique_together={('course', 'course_type', 'semester')},
        ),
    ]
示例#25
0
class Migration(migrations.Migration):

    dependencies = [
        ('homepage', '0008_auto_20170514_0513'),
    ]

    operations = [
        migrations.CreateModel(
            name='Ddl',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('year', models.IntegerField()),
                ('ddl', models.TextField()),
            ],
        ),
        migrations.CreateModel(
            name='psur',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('rmp', models.TextField()),
                ('guidelines', models.CharField(max_length=200)),
            ],
        ),
        migrations.CreateModel(
            name='Pvnewsletters',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('year', models.IntegerField()),
                ('newsletter', models.TextField()),
            ],
        ),
        migrations.CreateModel(
            name='Rmp',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('rmp', models.TextField()),
                ('guidelines', models.CharField(max_length=200)),
            ],
        ),
        migrations.RenameField(
            model_name='pv',
            old_name='address',
            new_name='pv',
        ),
        migrations.RemoveField(
            model_name='pv',
            name='mail1',
        ),
        migrations.RemoveField(
            model_name='pv',
            name='mail2',
        ),
        migrations.RemoveField(
            model_name='pv',
            name='mail3',
        ),
        migrations.RemoveField(
            model_name='pv',
            name='tele1',
        ),
        migrations.RemoveField(
            model_name='pv',
            name='tele2',
        ),
        migrations.RemoveField(
            model_name='pv',
            name='tele3',
        ),
        migrations.AlterField(
            model_name='contactus',
            name='contact_details',
            field=models.CharField(max_length=200),
        ),
    ]
示例#26
0
class Migration(migrations.Migration):

    dependencies = [
        ('realtors', '0001_initial'),
        ('accounts', '0021_auto_20190104_1553'),
    ]

    operations = [
        migrations.CreateModel(
            name='Dashboard',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('listing', models.CharField(default=None, max_length=200)),
                ('listing_id', models.IntegerField(default=None)),
                ('buying_price', models.IntegerField(default=None)),
                ('location', models.CharField(default=None, max_length=200)),
                ('name', models.CharField(default=None, max_length=200)),
                ('email', models.CharField(default=None, max_length=100)),
                ('payment_plan', models.CharField(default=None,
                                                  max_length=200)),
                ('payment_deposit',
                 models.CharField(default=None, max_length=200)),
                ('payment_made', models.CharField(default=None,
                                                  max_length=200)),
                ('payment_due', models.CharField(default=None,
                                                 max_length=200)),
                ('plot_type', models.CharField(default=None, max_length=100)),
                ('lot_size', models.CharField(default=None, max_length=100)),
                ('sqft', models.IntegerField(default=None)),
                ('description', models.TextField(blank=True, default=None)),
                ('message', models.TextField(blank=True, default=None)),
                ('item_main',
                 models.ImageField(default=None,
                                   upload_to='photos/%Y/%m/%d/')),
                ('item_1',
                 models.ImageField(blank=True,
                                   default=None,
                                   upload_to='photos/%Y/%m/%d/')),
                ('item_2',
                 models.ImageField(blank=True,
                                   default=None,
                                   upload_to='photos/%Y/%m/%d/')),
                ('item_3',
                 models.ImageField(blank=True,
                                   default=None,
                                   upload_to='photos/%Y/%m/%d/')),
                ('item_4',
                 models.ImageField(blank=True,
                                   default=None,
                                   upload_to='photos/%Y/%m/%d/')),
                ('item_5',
                 models.ImageField(blank=True,
                                   default=None,
                                   upload_to='photos/%Y/%m/%d/')),
                ('item_6',
                 models.ImageField(blank=True,
                                   default=None,
                                   upload_to='photos/%Y/%m/%d/')),
                ('is_published', models.BooleanField(default=True)),
                ('list_date',
                 models.DateTimeField(blank=True,
                                      default=datetime.datetime.now)),
                ('realtor',
                 models.ForeignKey(
                     on_delete=django.db.models.deletion.DO_NOTHING,
                     to='realtors.Realtor')),
            ],
        ),
        migrations.RemoveField(
            model_name='accounts',
            name='realtor',
        ),
        migrations.DeleteModel(name='Accounts', ),
    ]
class Migration(migrations.Migration):

    dependencies = [("delivery", "0016_report_contact_voicemail")]

    operations = [migrations.RemoveField(model_name="report", name="autosaved")]
class Migration(migrations.Migration):

    dependencies = [
        ('inventory', '0014_auto_20200813_1451'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='sign',
            options={'ordering': ['name']},
        ),
        migrations.RenameField(
            model_name='sign',
            old_name='lefd',
            new_name='leftFingerDirection',
        ),
        migrations.RenameField(
            model_name='sign',
            old_name='lloc',
            new_name='leftLocation',
        ),
        migrations.RenameField(
            model_name='sign',
            old_name='lside',
            new_name='leftLocationContact',
        ),
        migrations.RenameField(
            model_name='sign',
            old_name='lcontact',
            new_name='leftLocationSide',
        ),
        migrations.RenameField(
            model_name='sign',
            old_name='lori',
            new_name='leftPalmOrientation',
        ),
        migrations.RenameField(
            model_name='sign',
            old_name='efd',
            new_name='rightFingerDirection',
        ),
        migrations.RenameField(
            model_name='sign',
            old_name='loc',
            new_name='rightLocation',
        ),
        migrations.RenameField(
            model_name='sign',
            old_name='contact',
            new_name='rightLocationContact',
        ),
        migrations.RenameField(
            model_name='sign',
            old_name='side',
            new_name='rightLocationSide',
        ),
        migrations.RenameField(
            model_name='sign',
            old_name='ori',
            new_name='rightPalmOrientation',
        ),
        migrations.RenameField(
            model_name='sign',
            old_name='twohanded',
            new_name='twoHanded',
        ),
        migrations.RemoveField(
            model_name='sign',
            name='hs',
        ),
        migrations.RemoveField(
            model_name='sign',
            name='lhs',
        ),
        migrations.AddField(
            model_name='sign',
            name='leftHandshape',
            field=models.ForeignKey(
                default=1,
                on_delete=django.db.models.deletion.SET_DEFAULT,
                related_name='leftHandshape_sign_set',
                to='inventory.Handshape',
                verbose_name='Left Handshape'),
        ),
        migrations.AddField(
            model_name='sign',
            name='locationType',
            field=models.CharField(default='',
                                   max_length=5,
                                   verbose_name='Location Type'),
        ),
        migrations.AddField(
            model_name='sign',
            name='rightHandshape',
            field=models.ForeignKey(
                default=1,
                on_delete=django.db.models.deletion.SET_DEFAULT,
                related_name='rightHandshape_sign_set',
                to='inventory.Handshape',
                verbose_name='Right Handshape'),
        ),
    ]
示例#29
0
class Migration(migrations.Migration):

    dependencies = [
        ('kuliah', '0001_initial'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='nilaikuliah',
            name='kontrak_kuliah',
        ),
        migrations.RemoveField(
            model_name='kontrakkuliah',
            name='akhir_kontrak',
        ),
        migrations.RemoveField(
            model_name='kontrakkuliah',
            name='mulai_kontrak',
        ),
        migrations.AddField(
            model_name='jadwalkuliah',
            name='akhir_kontrak',
            field=models.DateField(blank=True, default=None),
        ),
        migrations.AddField(
            model_name='jadwalkuliah',
            name='mata_kuliah',
            field=models.ForeignKey(
                blank=True,
                default=None,
                on_delete=django.db.models.deletion.CASCADE,
                to='kuliah.MataKuliah'),
        ),
        migrations.AddField(
            model_name='jadwalkuliah',
            name='mulai_kontrak',
            field=models.DateField(blank=True, default=None),
        ),
        migrations.AddField(
            model_name='jadwalkuliah',
            name='tahun',
            field=models.IntegerField(blank=True, default=2000),
        ),
        migrations.AddField(
            model_name='kontrakkuliah',
            name='tanggal_kontrak',
            field=models.DateField(blank=True, default=None),
        ),
        migrations.AlterField(
            model_name='jadwalkuliah',
            name='akhir_kuliah',
            field=models.TimeField(blank=True),
        ),
        migrations.AlterField(
            model_name='jadwalkuliah',
            name='mulai_kuliah',
            field=models.TimeField(blank=True),
        ),
        migrations.AlterField(
            model_name='kontrakkuliah',
            name='semester',
            field=models.CharField(choices=[('semester_1', 'Semester 1'),
                                            ('semester_2', 'Semester 2'),
                                            ('semester_3', 'Semester 3'),
                                            ('semester_4', 'Semester 4'),
                                            ('semester_5', 'Semester 5'),
                                            ('semester_6', 'Semester 6'),
                                            ('semester_7', 'Semester 7'),
                                            ('semester_8', 'Semester 8'),
                                            ('semester_9', 'Semester 9'),
                                            ('semester_10', 'Semester 10'),
                                            ('semester_11', 'Semester 11'),
                                            ('semester_12', 'Semester 12'),
                                            ('semester_pendek',
                                             'Semester Pendek')],
                                   default='semester_1',
                                   max_length=50),
        ),
        migrations.DeleteModel(name='NilaiKuliah', ),
    ]
示例#30
0
class Migration(migrations.Migration):

    dependencies = [
        ('attendance', '0007_auto_20190902_1504'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='nocheckinlog',
            name='handle_time',
        ),
        migrations.AlterField(
            model_name='nocheckin',
            name='check_in_period',
            field=models.CharField(choices=[('1', '上午上班'), ('2', '上午下班'),
                                            ('3', '下午上班'), ('4', '下午下班')],
                                   max_length=2,
                                   verbose_name='打卡时段'),
        ),
        migrations.AlterField(
            model_name='nocheckin',
            name='cur_handler',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='no_check_in_cur_handler',
                to=settings.AUTH_USER_MODEL,
                verbose_name='应审核人'),
        ),
        migrations.AlterField(
            model_name='nocheckin',
            name='cur_step',
            field=models.CharField(choices=[('1', '提出申请'), ('2', '部门主管处理'),
                                            ('3', '校区主任处理'), ('4', '审批完毕')],
                                   default=1,
                                   max_length=2,
                                   verbose_name='处理步骤'),
        ),
        migrations.AlterField(
            model_name='nocheckin',
            name='result',
            field=models.CharField(choices=[('0', '处理中...'), ('1', '同意'),
                                            ('2', '不同意')],
                                   default=1,
                                   max_length=2,
                                   verbose_name='审核结果'),
        ),
        migrations.AlterField(
            model_name='nocheckinlog',
            name='opinion',
            field=models.CharField(max_length=256,
                                   null=True,
                                   verbose_name='审核意见'),
        ),
        migrations.AlterField(
            model_name='nocheckinlog',
            name='result',
            field=models.CharField(choices=[('同意', '1'), ('不同意', '2')],
                                   max_length=2,
                                   null=True,
                                   verbose_name='审核结果'),
        ),
        migrations.AlterField(
            model_name='nocheckinlog',
            name='step',
            field=models.CharField(choices=[('1', '提出申请'), ('2', '部门主管处理'),
                                            ('3', '校区主任处理'), ('4', '审批完毕')],
                                   max_length=2,
                                   verbose_name='步骤'),
        ),
    ]