class Migration(migrations.Migration):

    dependencies = [
        ('church', '0021_auto_20180814_0854'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='signup',
            name='email',
        ),
        migrations.AddField(
            model_name='signup',
            name='address',
            field=models.TextField(default=' '),
        ),
        migrations.AddField(
            model_name='signup',
            name='agree_with_terms_and_conditions',
            field=models.BooleanField(default=True),
        ),
        migrations.AddField(
            model_name='signup',
            name='gender',
            field=models.CharField(choices=[('M', 'Male'), ('F', 'Female')],
                                   default=' ',
                                   max_length=1),
        ),
        migrations.AddField(
            model_name='signup',
            name='nationality',
            field=models.CharField(choices=[('uganda', 'Ugandan'),
                                            ('kenya', 'Kenyan'),
                                            ('tanzania', 'Tanzanian'),
                                            ('rwanda', 'Rwandese'),
                                            ('sudan', 'Sudanese'),
                                            ('india', 'Indian'),
                                            ('somalia', 'Somalese'),
                                            ('usa', 'American'),
                                            ('britain', 'British'),
                                            ('france', 'French'),
                                            ('russia', 'Russian'),
                                            ('congo', 'Congolese'),
                                            ('nigeria', 'Nigerian'),
                                            ('germany', 'German'),
                                            ('sa', 'South African')],
                                   default='uganda',
                                   max_length=20),
        ),
        migrations.AddField(
            model_name='signup',
            name='occupation',
            field=models.CharField(default=' ', max_length=20),
        ),
        migrations.AddField(
            model_name='signup',
            name='relationship_status',
            field=models.CharField(choices=[
                ('single', 'Single'),
                ('In a Relationship', (('dating', 'Dating'),
                                       ('engaged', 'Engaged'), ('married',
                                                                'Married')))
            ],
                                   default='single',
                                   max_length=10),
        ),
        migrations.AddField(
            model_name='signup',
            name='terms_and_conditions',
            field=models.TextField(
                default='1.We are a strictly anglican church group'),
        ),
        migrations.AlterField(
            model_name='signup',
            name='profile',
            field=models.TextField(default='Tell us about yourself'),
        ),
        migrations.AlterField(
            model_name='signup',
            name='tel_number',
            field=models.IntegerField(default=256),
        ),
    ]
Exemple #2
0
class Migration(migrations.Migration):
    dependencies = [
        ('teammanager', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='League',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=20)),
            ],
        ),
        migrations.CreateModel(
            name='Season',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=20)),
            ],
        ),
        migrations.CreateModel(
            name='SeasonLeagueTeam',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('league',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='teammanager.league')),
                ('season',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='teammanager.season')),
            ],
        ),
        migrations.RenameField(
            model_name='team',
            old_name='place',
            new_name='location',
        ),
        migrations.RemoveField(
            model_name='gameinfo',
            name='pin',
        ),
        migrations.RemoveField(
            model_name='team',
            name='division',
        ),
        migrations.AlterField(
            model_name='userprofile',
            name='team',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                to='teammanager.team'),
        ),
        migrations.DeleteModel(name='Division', ),
        migrations.AddField(
            model_name='seasonleagueteam',
            name='team',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='teammanager.team'),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('calculation', '0005_auto_20180531_1855'),
    ]

    operations = [
        migrations.CreateModel(
            name='Dish',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=250, verbose_name=' название')),
                ('out', models.PositiveIntegerField(db_index=True, editable=False, verbose_name='выход')),
            ],
            options={
                'verbose_name': 'Блюда',
                'ordering': ['name'],
                'db_table': 'appcalc_courses',
                'verbose_name_plural': 'Юлюда',
            },
        ),
        migrations.CreateModel(
            name='Menu',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('created_at', models.DateTimeField(db_index=True, verbose_name='создано')),
                ('food_intake', models.PositiveIntegerField(db_index=True, verbose_name='приём пищи')),
                ('out', models.PositiveIntegerField(db_index=True, editable=False, verbose_name='выход')),
                ('in_action', models.BooleanField(db_index=True, default=True, verbose_name='в действии')),
                ('approved', models.ForeignKey(blank=True, default=None, on_delete=django.db.models.deletion.PROTECT, related_name='menu_approved', to='calculation.People', verbose_name='утверждено')),
                ('dish', models.ForeignKey(blank=True, default=None, on_delete=django.db.models.deletion.PROTECT, related_name='menu_dish', to='calculation.Dish', verbose_name='утверждено')),
            ],
            options={
                'verbose_name': 'Меню',
                'ordering': ['created_at', 'food_intake'],
                'verbose_name_plural': 'Меню',
            },
        ),
        migrations.CreateModel(
            name='Registration',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('motion', models.SmallIntegerField(choices=[(1, 'arrival'), (-1, 'expense')], default=1)),
                ('qty', models.DecimalField(decimal_places=3, default=0, max_digits=15, verbose_name='количество')),
                ('summa', models.DecimalField(decimal_places=2, default=0, max_digits=15, verbose_name='сумма')),
                ('created_at', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='создано')),
                ('from_of', models.ForeignKey(blank=True, default=None, on_delete=django.db.models.deletion.PROTECT, to='calculation.Сontractor', verbose_name='Котрагент')),
                ('invoce', models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.PROTECT, to='calculation.Invoice', verbose_name='накладная')),
                ('menu', models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.PROTECT, to='calculation.Menu', verbose_name='меню')),
            ],
        ),
        migrations.AlterModelOptions(
            name='map',
            options={'ordering': ['number', 'created_at'], 'verbose_name': 'Технологическая карта', 'verbose_name_plural': 'Технологические карты'},
        ),
        migrations.AlterModelOptions(
            name='product',
            options={'ordering': ['name'], 'verbose_name': 'Продукт', 'verbose_name_plural': 'Продукты'},
        ),
        migrations.AlterField(
            model_name='map',
            name='agreed',
            field=models.ForeignKey(blank=True, default=None, on_delete=django.db.models.deletion.PROTECT, related_name='map_agreed', to='calculation.People', verbose_name='согласовано'),
        ),
        migrations.AlterField(
            model_name='map',
            name='approved',
            field=models.ForeignKey(blank=True, default=None, on_delete=django.db.models.deletion.PROTECT, related_name='map_approved', to='calculation.People', verbose_name='утверждено'),
        ),
        migrations.AlterField(
            model_name='stock',
            name='invoce',
            field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.PROTECT, to='calculation.Invoice', verbose_name='накладная'),
        ),
        migrations.AlterField(
            model_name='stock',
            name='motion',
            field=models.SmallIntegerField(choices=[(1, 'arrival'), (-1, 'expense')], default=1),
        ),
        migrations.AddField(
            model_name='registration',
            name='product',
            field=models.ForeignKey(blank=True, default=None, on_delete=django.db.models.deletion.PROTECT, to='calculation.Product', verbose_name='товар'),
        ),
        migrations.AddField(
            model_name='dish',
            name='tech_map',
            field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='course', to='calculation.Map', verbose_name='технологическая карта'),
        ),
        migrations.AddField(
            model_name='dish',
            name='unit',
            field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.PROTECT, to='calculation.Unit', verbose_name='ед. изм'),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('DjangoApp', '0014_auto_20160401_1635'),
    ]

    operations = [
        migrations.CreateModel(
            name='like',
            fields=[
                ('id',
                 models.AutoField(verbose_name='ID',
                                  serialize=False,
                                  auto_created=True,
                                  primary_key=True)),
            ],
        ),
        migrations.CreateModel(
            name='mark',
            fields=[
                ('id',
                 models.AutoField(verbose_name='ID',
                                  serialize=False,
                                  auto_created=True,
                                  primary_key=True)),
            ],
        ),
        migrations.AddField(
            model_name='comment',
            name='reply',
            field=models.ForeignKey(default=1, to='DjangoApp.Comment'),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='article',
            name='date',
            field=models.DateTimeField(
                default=datetime.datetime(2016, 4, 2, 10, 57, 54, 845963)),
        ),
        migrations.AlterField(
            model_name='comment',
            name='date',
            field=models.DateTimeField(
                default=datetime.datetime(2016, 4, 2, 10, 57, 54, 846994)),
        ),
        migrations.AddField(
            model_name='mark',
            name='Article_mark_id',
            field=models.ForeignKey(to='DjangoApp.Comment'),
        ),
        migrations.AddField(
            model_name='mark',
            name='User_mark_id',
            field=models.ForeignKey(to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='like',
            name='Comment_like_id',
            field=models.ForeignKey(to='DjangoApp.Comment'),
        ),
        migrations.AddField(
            model_name='like',
            name='User_like_id',
            field=models.ForeignKey(to=settings.AUTH_USER_MODEL),
        ),
    ]
Exemple #5
0
class Migration(migrations.Migration):

    dependencies = [
        ('main', '0009_auto_20200724_0032'),
    ]

    operations = [
        migrations.AlterField(
            model_name='basicpage',
            name='body',
            field=wagtail.core.fields.StreamField([
                ('rich_text', wagtail.core.blocks.RichTextBlock()),
                ('image',
                 wagtail.core.blocks.StructBlock([
                     ('image_file',
                      wagtail.images.blocks.ImageChooserBlock(required=True)),
                     ('title',
                      wagtail.core.blocks.CharBlock(
                          help_text='Title for the image', required=False)),
                     ('caption',
                      wagtail.core.blocks.CharBlock(
                          help_text='Caption for the image', required=False))
                 ]))
            ]),
        ),
        migrations.AlterField(
            model_name='eartrainingelementpage',
            name='body',
            field=wagtail.core.fields.StreamField([
                ('topic',
                 wagtail.core.blocks.StructBlock([
                     ('title', wagtail.core.blocks.CharBlock()),
                     ('musical_elements',
                      wagtail.core.blocks.ListBlock(
                          wagtail.core.blocks.StructBlock([
                              ('element_title',
                               wagtail.core.blocks.CharBlock()),
                              ('content',
                               wagtail.core.blocks.StreamBlock([
                                   ('rich_text',
                                    wagtail.core.blocks.RichTextBlock(
                                        features=[
                                            'bold', 'italic', 'ol', 'li', 'hr',
                                            'link', 'document_link'
                                        ])),
                                   ('image',
                                    wagtail.core.blocks.StructBlock([
                                        ('image_file',
                                         wagtail.images.blocks.
                                         ImageChooserBlock(required=True)),
                                        ('title',
                                         wagtail.core.blocks.CharBlock(
                                             help_text='Title for the image',
                                             required=False)),
                                        ('caption',
                                         wagtail.core.blocks.CharBlock(
                                             help_text='Caption for the image',
                                             required=False))
                                    ])),
                                   ('video',
                                    wagtail.core.blocks.StructBlock(
                                        [('url',
                                          wagtail.core.blocks.URLBlock()),
                                         ('description',
                                          wagtail.core.blocks.CharBlock(
                                              required=False))]))
                               ],
                                                               icon='cogs'))
                          ])))
                 ]))
            ]),
        ),
        migrations.AlterField(
            model_name='eartraininglevelpage',
            name='body',
            field=wagtail.core.fields.StreamField([
                ('rich_text', wagtail.core.blocks.RichTextBlock()),
                ('image',
                 wagtail.core.blocks.StructBlock([
                     ('image_file',
                      wagtail.images.blocks.ImageChooserBlock(required=True)),
                     ('title',
                      wagtail.core.blocks.CharBlock(
                          help_text='Title for the image', required=False)),
                     ('caption',
                      wagtail.core.blocks.CharBlock(
                          help_text='Caption for the image', required=False))
                 ]))
            ]),
        ),
        migrations.AlterField(
            model_name='improvisationcombinationpage',
            name='body',
            field=wagtail.core.fields.StreamField([
                ('rich_text', wagtail.core.blocks.RichTextBlock()),
                ('table',
                 wagtail.contrib.table_block.blocks.TableBlock(
                     template='main/blocks/table_block.html')),
                ('image',
                 wagtail.core.blocks.StructBlock([
                     ('image_file',
                      wagtail.images.blocks.ImageChooserBlock(required=True)),
                     ('title',
                      wagtail.core.blocks.CharBlock(
                          help_text='Title for the image', required=False)),
                     ('caption',
                      wagtail.core.blocks.CharBlock(
                          help_text='Caption for the image', required=False))
                 ]))
            ]),
        ),
        migrations.AlterField(
            model_name='improvisationtypepage',
            name='body',
            field=wagtail.core.fields.StreamField([
                ('rich_text', wagtail.core.blocks.RichTextBlock()),
                ('image',
                 wagtail.core.blocks.StructBlock([
                     ('image_file',
                      wagtail.images.blocks.ImageChooserBlock(required=True)),
                     ('title',
                      wagtail.core.blocks.CharBlock(
                          help_text='Title for the image', required=False)),
                     ('caption',
                      wagtail.core.blocks.CharBlock(
                          help_text='Caption for the image', required=False))
                 ]))
            ]),
        ),
    ]
Exemple #6
0
class Migration(migrations.Migration):

    dependencies = [
        ("djstripe",
         "0003_auto_20181117_2328_squashed_0004_auto_20190227_2114")
    ]

    operations = [
        # Altering the index is required because while we have changed the name of old PaymentMethod model to
        # DjStripePaymentMethod, the migrations didn't update the names of index.
        # In the current migration, we create a new PaymentMethod model, hence before creating it, its
        # better to rename the old index.
        migrations.RunPython(
            code=fix_djstripepaymentmethod_index_name_forwards,
            reverse_code=fix_djstripepaymentmethod_index_name_backwards,
        ),
        migrations.AlterField(
            model_name="subscriptionitem",
            name="quantity",
            field=models.PositiveIntegerField(
                blank=True,
                help_text=
                "The quantity of the plan to which the customer should be subscribed.",
                null=True,
            ),
        ),
        migrations.AddField(
            model_name="invoice",
            name="auto_advance",
            field=models.BooleanField(
                null=True,
                help_text=
                "Controls whether Stripe will perform automatic collection of the invoice. When false, the invoice’s state will not automatically advance without an explicit action.",
            ),
        ),
        migrations.RenameField(model_name="account",
                               old_name="business_logo",
                               new_name="branding_icon"),
        migrations.AddField(
            model_name="account",
            name="branding_logo",
            field=djstripe.fields.StripeForeignKey(
                help_text=
                "A logo for the account that will be used in Checkout instead of the icon and without the account’s name next to it if provided. Must be at least 128px x 128px.",
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                related_name="logo_account",
                to="djstripe.FileUpload",
            ),
        ),
        migrations.AddField(
            model_name="account",
            name="business_profile",
            field=djstripe.fields.JSONField(
                blank=True,
                help_text="Optional information related to the business.",
                null=True,
            ),
        ),
        migrations.AddField(
            model_name="account",
            name="business_type",
            field=djstripe.fields.StripeEnumField(
                blank=True,
                default="",
                enum=djstripe.enums.BusinessType,
                help_text="The business type.",
                max_length=10,
            ),
        ),
        migrations.AddField(
            model_name="account",
            name="company",
            field=djstripe.fields.JSONField(
                blank=True,
                help_text=
                "Information about the company or business. This field is null unless business_type is set to company.",
                null=True,
            ),
        ),
        migrations.AddField(
            model_name="account",
            name="individual",
            field=djstripe.fields.JSONField(
                blank=True,
                help_text=
                "Information about the person represented by the account. This field is null unless business_type is set to individual.",
                null=True,
            ),
        ),
        migrations.AddField(
            model_name="account",
            name="requirements",
            field=djstripe.fields.JSONField(
                blank=True,
                help_text=
                "Information about the requirements for the account, including what information needs to be collected, and by when.",
                null=True,
            ),
        ),
        migrations.AddField(
            model_name="account",
            name="settings",
            field=djstripe.fields.JSONField(
                blank=True,
                help_text=
                "Account options for customizing how the account functions within Stripe.",
                null=True,
            ),
        ),
        migrations.AlterModelOptions(name="invoice",
                                     options={"ordering": ["-created"]}),
        migrations.RenameField(
            model_name="invoice",
            old_name="application_fee",
            new_name="application_fee_amount",
        ),
        migrations.RemoveField(model_name="invoice", name="date"),
        migrations.AddField(
            model_name="invoice",
            name="status_transitions",
            field=djstripe.fields.JSONField(blank=True, null=True),
        ),
        migrations.RenameField(model_name="customer",
                               old_name="account_balance",
                               new_name="balance"),
        migrations.CreateModel(
            name="PaymentMethod",
            fields=[
                (
                    "djstripe_id",
                    models.BigAutoField(primary_key=True,
                                        serialize=False,
                                        verbose_name="ID"),
                ),
                ("id",
                 djstripe.fields.StripeIdField(max_length=255, unique=True)),
                (
                    "livemode",
                    models.BooleanField(
                        null=True,
                        default=None,
                        blank=True,
                        help_text=
                        "Null here indicates that the livemode status is unknown or was previously unrecorded. Otherwise, this field indicates whether this record comes from Stripe test mode or live mode operation.",
                    ),
                ),
                (
                    "created",
                    djstripe.fields.StripeDateTimeField(
                        blank=True,
                        help_text=
                        "The datetime this object was created in stripe.",
                        null=True,
                    ),
                ),
                (
                    "metadata",
                    djstripe.fields.JSONField(
                        blank=True,
                        help_text=
                        "A set of key/value pairs that you can attach to an object. It can be useful for storing additional information about an object in a structured format.",
                        null=True,
                    ),
                ),
                (
                    "description",
                    models.TextField(blank=True,
                                     help_text="A description of this object.",
                                     null=True),
                ),
                ("djstripe_created", models.DateTimeField(auto_now_add=True)),
                ("djstripe_updated", models.DateTimeField(auto_now=True)),
                (
                    "billing_details",
                    djstripe.fields.JSONField(
                        help_text=
                        "Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods."
                    ),
                ),
                (
                    "card",
                    djstripe.fields.JSONField(
                        help_text=
                        "If this is a card PaymentMethod, this hash contains details about the card."
                    ),
                ),
                (
                    "card_present",
                    djstripe.fields.JSONField(
                        blank=True,
                        help_text=
                        "If this is an card_present PaymentMethod, this hash contains details about the Card Present payment method.",
                        null=True,
                    ),
                ),
                (
                    "type",
                    models.CharField(
                        blank=True,
                        help_text=
                        "The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type.",
                        max_length=255,
                    ),
                ),
                (
                    "customer",
                    djstripe.fields.StripeForeignKey(
                        blank=True,
                        help_text=
                        "Customer to which this PaymentMethod is saved.This will not be set when the PaymentMethod has not been saved to a Customer.",
                        null=True,
                        on_delete=django.db.models.deletion.SET_NULL,
                        related_name="payment_methods",
                        to="djstripe.Customer",
                    ),
                ),
            ],
            options={
                "get_latest_by": "created",
                "abstract": False
            },
        ),
        migrations.AlterField(
            model_name="payout",
            name="destination",
            field=djstripe.fields.StripeForeignKey(
                help_text="Bank account or card the payout was sent to.",
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                to="djstripe.BankAccount",
            ),
        ),
        migrations.CreateModel(
            name="SetupIntent",
            fields=[
                (
                    "djstripe_id",
                    models.BigAutoField(primary_key=True,
                                        serialize=False,
                                        verbose_name="ID"),
                ),
                ("id",
                 djstripe.fields.StripeIdField(max_length=255, unique=True)),
                (
                    "livemode",
                    models.BooleanField(
                        null=True,
                        default=None,
                        blank=True,
                        help_text=
                        "Null here indicates that the livemode status is unknown or was previously unrecorded. Otherwise, this field indicates whether this record comes from Stripe test mode or live mode operation.",
                    ),
                ),
                (
                    "created",
                    djstripe.fields.StripeDateTimeField(
                        blank=True,
                        help_text=
                        "The datetime this object was created in stripe.",
                        null=True,
                    ),
                ),
                (
                    "metadata",
                    djstripe.fields.JSONField(
                        blank=True,
                        help_text=
                        "A set of key/value pairs that you can attach to an object. It can be useful for storing additional information about an object in a structured format.",
                        null=True,
                    ),
                ),
                (
                    "description",
                    models.TextField(blank=True,
                                     help_text="A description of this object.",
                                     null=True),
                ),
                ("djstripe_created", models.DateTimeField(auto_now_add=True)),
                ("djstripe_updated", models.DateTimeField(auto_now=True)),
                (
                    "application",
                    models.CharField(
                        blank=True,
                        help_text=
                        "ID of the Connect application that created the SetupIntent.",
                        max_length=255,
                    ),
                ),
                (
                    "cancellation_reason",
                    djstripe.fields.StripeEnumField(
                        blank=True,
                        enum=djstripe.enums.SetupIntentCancellationReason,
                        help_text=
                        "Reason for cancellation of this SetupIntent, one of abandoned, requested_by_customer, or duplicate",
                        max_length=21,
                    ),
                ),
                (
                    "client_secret",
                    models.TextField(
                        blank=True,
                        help_text=
                        "The client secret of this SetupIntent. Used for client-side retrieval using a publishable key.",
                        max_length=5000,
                    ),
                ),
                (
                    "last_setup_error",
                    djstripe.fields.JSONField(
                        blank=True,
                        help_text=
                        "The error encountered in the previous SetupIntent confirmation.",
                        null=True,
                    ),
                ),
                (
                    "next_action",
                    djstripe.fields.JSONField(
                        blank=True,
                        help_text=
                        "If present, this property tells you what actions you need to take inorder for your customer to continue payment setup.",
                        null=True,
                    ),
                ),
                (
                    "payment_method_types",
                    djstripe.fields.JSONField(
                        help_text=
                        "The list of payment method types (e.g. card) that this PaymentIntent is allowed to use."
                    ),
                ),
                (
                    "status",
                    djstripe.fields.StripeEnumField(
                        enum=djstripe.enums.SetupIntentStatus,
                        help_text=
                        "Status of this SetupIntent, one of requires_payment_method, requires_confirmation, requires_action, processing, canceled, or succeeded.",
                        max_length=23,
                    ),
                ),
                (
                    "usage",
                    djstripe.fields.StripeEnumField(
                        default="off_session",
                        enum=djstripe.enums.IntentUsage,
                        help_text=
                        "Indicates how the payment method is intended to be used in the future.",
                        max_length=11,
                    ),
                ),
                (
                    "customer",
                    djstripe.fields.StripeForeignKey(
                        blank=True,
                        help_text=
                        "Customer this SetupIntent belongs to, if one exists.",
                        null=True,
                        on_delete=django.db.models.deletion.SET_NULL,
                        to="djstripe.Customer",
                    ),
                ),
                (
                    "on_behalf_of",
                    djstripe.fields.StripeForeignKey(
                        blank=True,
                        help_text=
                        "The account (if any) for which the setup is intended.",
                        null=True,
                        on_delete=django.db.models.deletion.SET_NULL,
                        to="djstripe.Account",
                    ),
                ),
                (
                    "payment_method",
                    djstripe.fields.StripeForeignKey(
                        blank=True,
                        help_text="Payment method used in this PaymentIntent.",
                        null=True,
                        on_delete=django.db.models.deletion.SET_NULL,
                        to="djstripe.PaymentMethod",
                    ),
                ),
            ],
            options={
                "get_latest_by": "created",
                "abstract": False
            },
        ),
        migrations.CreateModel(
            name="PaymentIntent",
            fields=[
                (
                    "djstripe_id",
                    models.BigAutoField(primary_key=True,
                                        serialize=False,
                                        verbose_name="ID"),
                ),
                ("id",
                 djstripe.fields.StripeIdField(max_length=255, unique=True)),
                (
                    "livemode",
                    models.BooleanField(
                        null=True,
                        default=None,
                        blank=True,
                        help_text=
                        "Null here indicates that the livemode status is unknown or was previously unrecorded. Otherwise, this field indicates whether this record comes from Stripe test mode or live mode operation.",
                    ),
                ),
                (
                    "created",
                    djstripe.fields.StripeDateTimeField(
                        blank=True,
                        help_text=
                        "The datetime this object was created in stripe.",
                        null=True,
                    ),
                ),
                (
                    "metadata",
                    djstripe.fields.JSONField(
                        blank=True,
                        help_text=
                        "A set of key/value pairs that you can attach to an object. It can be useful for storing additional information about an object in a structured format.",
                        null=True,
                    ),
                ),
                ("djstripe_created", models.DateTimeField(auto_now_add=True)),
                ("djstripe_updated", models.DateTimeField(auto_now=True)),
                (
                    "amount",
                    djstripe.fields.StripeQuantumCurrencyAmountField(
                        help_text=
                        "Amount (in cents) intended to be collected by this PaymentIntent."
                    ),
                ),
                (
                    "amount_capturable",
                    djstripe.fields.StripeQuantumCurrencyAmountField(
                        help_text=
                        "Amount (in cents) that can be captured from this PaymentIntent."
                    ),
                ),
                (
                    "amount_received",
                    djstripe.fields.StripeQuantumCurrencyAmountField(
                        help_text=
                        "Amount (in cents) that was collected by this PaymentIntent."
                    ),
                ),
                (
                    "canceled_at",
                    djstripe.fields.StripeDateTimeField(
                        blank=True,
                        default=None,
                        help_text=
                        "Populated when status is canceled, this is the time at which the PaymentIntent was canceled. Measured in seconds since the Unix epoch.",
                        null=True,
                    ),
                ),
                (
                    "cancellation_reason",
                    djstripe.fields.StripeEnumField(
                        blank=True,
                        enum=djstripe.enums.PaymentIntentCancellationReason,
                        help_text=
                        "Reason for cancellation of this PaymentIntent, either user-provided (duplicate, fraudulent, requested_by_customer, or abandoned) or generated by Stripe internally (failed_invoice, void_invoice, or automatic).",
                        max_length=21,
                    ),
                ),
                (
                    "capture_method",
                    djstripe.fields.StripeEnumField(
                        enum=djstripe.enums.CaptureMethod,
                        help_text=
                        "Capture method of this PaymentIntent, one of automatic or manual.",
                        max_length=9,
                    ),
                ),
                (
                    "client_secret",
                    models.TextField(
                        help_text=
                        "The client secret of this PaymentIntent. Used for client-side retrieval using a publishable key.",
                        max_length=5000,
                    ),
                ),
                (
                    "confirmation_method",
                    djstripe.fields.StripeEnumField(
                        enum=djstripe.enums.ConfirmationMethod,
                        help_text=
                        "Confirmation method of this PaymentIntent, one of manual or automatic.",
                        max_length=9,
                    ),
                ),
                (
                    "currency",
                    djstripe.fields.StripeCurrencyCodeField(
                        help_text="Three-letter ISO currency code",
                        max_length=3),
                ),
                (
                    "description",
                    models.TextField(
                        default="",
                        help_text=
                        "An arbitrary string attached to the object. Often useful for displaying to users.",
                        max_length=1000,
                        blank=True,
                    ),
                ),
                (
                    "last_payment_error",
                    djstripe.fields.JSONField(
                        blank=True,
                        help_text=
                        "The payment error encountered in the previous PaymentIntent confirmation.",
                        null=True,
                    ),
                ),
                (
                    "next_action",
                    djstripe.fields.JSONField(
                        blank=True,
                        help_text=
                        "If present, this property tells you what actions you need to take in order for your customer to fulfill a payment using the provided source.",
                        null=True,
                    ),
                ),
                (
                    "payment_method_types",
                    djstripe.fields.JSONField(
                        help_text=
                        "The list of payment method types (e.g. card) that this PaymentIntent is allowed to use."
                    ),
                ),
                (
                    "receipt_email",
                    models.CharField(
                        blank=True,
                        help_text=
                        "Email address that the receipt for the resulting payment will be sent to.",
                        max_length=255,
                    ),
                ),
                (
                    "setup_future_usage",
                    djstripe.fields.StripeEnumField(
                        blank=True,
                        enum=djstripe.enums.IntentUsage,
                        help_text=
                        "Indicates that you intend to make future payments with this PaymentIntent’s payment method. If present, the payment method used with this PaymentIntent can be attached to a Customer, even after the transaction completes. Use `on_session` if you intend to only reuse the payment method when your customer is present in your checkout flow. Use `off_session` if your customer may or may not be in your checkout flow. Stripe uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules. For example, if your customer is impacted by SCA, using `off_session` will ensure that they are authenticated while processing this PaymentIntent. You will then be able to make later off-session payments for this customer.",
                        max_length=11,
                        null=True,
                    ),
                ),
                (
                    "shipping",
                    djstripe.fields.JSONField(
                        blank=True,
                        help_text=
                        "Shipping information for this PaymentIntent.",
                        null=True,
                    ),
                ),
                (
                    "statement_descriptor",
                    models.CharField(
                        blank=True,
                        help_text=
                        "For non-card charges, you can use this value as the complete description that appears on your customers’ statements. Must contain at least one letter, maximum 22 characters.",
                        max_length=22,
                    ),
                ),
                (
                    "status",
                    djstripe.fields.StripeEnumField(
                        enum=djstripe.enums.PaymentIntentStatus,
                        help_text=
                        "Status of this PaymentIntent, one of requires_payment_method, requires_confirmation, requires_action, processing, requires_capture, canceled, or succeeded. You can read more about PaymentIntent statuses here.",
                        max_length=23,
                    ),
                ),
                (
                    "transfer_data",
                    djstripe.fields.JSONField(
                        blank=True,
                        help_text=
                        "The data with which to automatically create a Transfer when the payment is finalized. See the PaymentIntents Connect usage guide for details.",
                        null=True,
                    ),
                ),
                (
                    "transfer_group",
                    models.CharField(
                        blank=True,
                        help_text=
                        "A string that identifies the resulting payment as part of a group. See the PaymentIntents Connect usage guide for details.",
                        max_length=255,
                    ),
                ),
                (
                    "customer",
                    djstripe.fields.StripeForeignKey(
                        help_text=
                        "Customer this PaymentIntent is for if one exists.",
                        null=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        to="djstripe.Customer",
                    ),
                ),
                (
                    "on_behalf_of",
                    djstripe.fields.StripeForeignKey(
                        blank=True,
                        help_text=
                        "The account (if any) for which the funds of the PaymentIntent are intended.",
                        null=True,
                        on_delete=django.db.models.deletion.CASCADE,
                        to="djstripe.Account",
                    ),
                ),
                (
                    "payment_method",
                    djstripe.fields.StripeForeignKey(
                        blank=True,
                        help_text="Payment method used in this PaymentIntent.",
                        null=True,
                        on_delete=django.db.models.deletion.SET_NULL,
                        to="djstripe.PaymentMethod",
                    ),
                ),
            ],
            options={
                "get_latest_by": "created",
                "abstract": False
            },
        ),
        migrations.AddField(
            model_name="charge",
            name="payment_intent",
            field=djstripe.fields.StripeForeignKey(
                help_text=
                "PaymentIntent associated with this charge, if one exists.",
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                related_name="charges",
                to="djstripe.PaymentIntent",
            ),
        ),
        migrations.AddField(
            model_name="invoice",
            name="payment_intent",
            field=models.OneToOneField(
                help_text=
                "The PaymentIntent associated with this invoice. The PaymentIntent is generated when the invoice is finalized, and can then be used to pay the invoice.Note that voiding an invoice will cancel the PaymentIntent",
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to="djstripe.PaymentIntent",
            ),
        ),
        migrations.AddField(
            model_name="subscription",
            name="pending_setup_intent",
            field=djstripe.fields.StripeForeignKey(
                blank=True,
                help_text=
                "We can use this SetupIntent to collect user authentication when creating a subscription without immediate payment or updating a subscription’s payment method, allowing you to optimize for off-session payments.",
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name="setup_intents",
                to="djstripe.SetupIntent",
            ),
        ),
        migrations.AddField(
            model_name="customer",
            name="address",
            field=djstripe.fields.JSONField(
                blank=True, help_text="The customer's address.", null=True),
        ),
        migrations.AddField(
            model_name="customer",
            name="invoice_prefix",
            field=models.CharField(
                blank=True,
                default="",
                help_text=
                "The prefix for the customer used to generate unique invoice numbers.",
                max_length=255,
            ),
        ),
        migrations.AddField(
            model_name="customer",
            name="invoice_settings",
            field=djstripe.fields.JSONField(
                blank=True,
                help_text="The customer's default invoice settings.",
                null=True,
            ),
        ),
        migrations.AddField(
            model_name="customer",
            name="name",
            field=models.TextField(
                blank=True,
                default="",
                help_text="The customer's full name or business name.",
                max_length=5000,
            ),
        ),
        migrations.AddField(
            model_name="customer",
            name="phone",
            field=models.TextField(
                blank=True,
                default="",
                help_text="The customer's phone number.",
                max_length=5000,
            ),
        ),
        migrations.AddField(
            model_name="customer",
            name="preferred_locales",
            field=djstripe.fields.JSONField(
                blank=True,
                help_text=
                "The customer's preferred locales (languages), ordered by preference.",
                null=True,
            ),
        ),
        migrations.AddField(
            model_name="customer",
            name="tax_exempt",
            field=djstripe.fields.StripeEnumField(
                default="",
                enum=djstripe.enums.CustomerTaxExempt,
                help_text=
                'Describes the customer\'s tax exemption status. When set to reverse, invoice and receipt PDFs include the text "Reverse charge".',
                max_length=7,
            ),
        ),
        migrations.AlterField(
            model_name="bankaccount",
            name="account",
            field=djstripe.fields.StripeForeignKey(
                blank=True,
                help_text=
                "The account the charge was made on behalf of. Null here indicates that this value was never set.",
                null=True,
                on_delete=django.db.models.deletion.PROTECT,
                related_name="bank_account",
                to="djstripe.Account",
            ),
        ),
        migrations.AlterField(
            model_name="charge",
            name="fraud_details",
            field=djstripe.fields.JSONField(
                blank=True,
                help_text=
                "Hash with information on fraud assessments for the charge.",
                null=True,
            ),
        ),
        migrations.AlterField(
            model_name="charge",
            name="outcome",
            field=djstripe.fields.JSONField(
                blank=True,
                help_text=
                "Details about whether or not the payment was accepted, and why.",
                null=True,
            ),
        ),
        migrations.AlterField(
            model_name="subscription",
            name="status",
            field=djstripe.fields.StripeEnumField(
                enum=djstripe.enums.SubscriptionStatus,
                help_text="The status of this subscription.",
                max_length=18,
            ),
        ),
        migrations.AddField(
            model_name="customer",
            name="default_payment_method",
            field=djstripe.fields.StripeForeignKey(
                blank=True,
                help_text=
                "default payment method used for subscriptions and invoices for the customer.",
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                related_name="+",
                to="djstripe.PaymentMethod",
            ),
        ),
        migrations.AlterField(
            model_name="balancetransaction",
            name="type",
            field=djstripe.fields.StripeEnumField(
                enum=djstripe.enums.BalanceTransactionType, max_length=29),
        ),
        migrations.AddField(
            model_name="charge",
            name="payment_method_details",
            field=djstripe.fields.JSONField(
                blank=True,
                help_text=
                "Details about the payment method at the time of the transaction.",
                null=True,
            ),
        ),
        migrations.AddField(
            model_name="charge",
            name="receipt_url",
            field=models.TextField(
                blank=True,
                default="",
                help_text=
                "This is the URL to view the receipt for this charge. The receipt is kept up-to-date to the latest state of the charge, including any refunds. If the charge is for an Invoice, the receipt will be stylized as an Invoice receipt.",
                max_length=5000,
            ),
        ),
        migrations.CreateModel(
            name="Session",
            fields=[
                (
                    "djstripe_id",
                    models.BigAutoField(primary_key=True,
                                        serialize=False,
                                        verbose_name="ID"),
                ),
                ("id",
                 djstripe.fields.StripeIdField(max_length=255, unique=True)),
                (
                    "livemode",
                    models.BooleanField(
                        null=True,
                        default=None,
                        blank=True,
                        help_text=
                        "Null here indicates that the livemode status is unknown or was previously unrecorded. Otherwise, this field indicates whether this record comes from Stripe test mode or live mode operation.",
                    ),
                ),
                (
                    "created",
                    djstripe.fields.StripeDateTimeField(
                        blank=True,
                        help_text=
                        "The datetime this object was created in stripe.",
                        null=True,
                    ),
                ),
                (
                    "metadata",
                    djstripe.fields.JSONField(
                        blank=True,
                        help_text=
                        "A set of key/value pairs that you can attach to an object. It can be useful for storing additional information about an object in a structured format.",
                        null=True,
                    ),
                ),
                (
                    "description",
                    models.TextField(blank=True,
                                     help_text="A description of this object.",
                                     null=True),
                ),
                ("djstripe_created", models.DateTimeField(auto_now_add=True)),
                ("djstripe_updated", models.DateTimeField(auto_now=True)),
                (
                    "billing_address_collection",
                    djstripe.fields.StripeEnumField(
                        blank=True,
                        enum=djstripe.enums.SessionBillingAddressCollection,
                        help_text=
                        "The value (auto or required) for whether Checkoutcollected the customer’s billing address.",
                        max_length=8,
                    ),
                ),
                (
                    "cancel_url",
                    models.TextField(
                        blank=True,
                        help_text=
                        "The URL the customer will be directed to if theydecide to cancel payment and return to your website.",
                        max_length=5000,
                    ),
                ),
                (
                    "client_reference_id",
                    models.TextField(
                        blank=True,
                        help_text=
                        "A unique string to reference the Checkout Session.This can be a customer ID, a cart ID, or similar, andcan be used to reconcile the session with your internal systems.",
                        max_length=5000,
                    ),
                ),
                (
                    "customer_email",
                    models.CharField(
                        blank=True,
                        help_text=
                        "If provided, this value will be used when the Customer object is created.",
                        max_length=255,
                    ),
                ),
                (
                    "display_items",
                    djstripe.fields.JSONField(
                        blank=True,
                        help_text=
                        "The line items, plans, or SKUs purchased by the customer.",
                        null=True,
                    ),
                ),
                (
                    "locale",
                    models.CharField(
                        blank=True,
                        help_text=
                        "The IETF language tag of the locale Checkout is displayed in.If blank or auto, the browser’s locale is used.",
                        max_length=255,
                    ),
                ),
                (
                    "payment_method_types",
                    djstripe.fields.JSONField(
                        help_text=
                        "The list of payment method types (e.g. card) that this Checkout Session is allowed to accept."
                    ),
                ),
                (
                    "submit_type",
                    djstripe.fields.StripeEnumField(
                        blank=True,
                        enum=djstripe.enums.SubmitTypeStatus,
                        help_text=
                        "Describes the type of transaction being performed by Checkoutin order to customize relevant text on the page, such as the submit button.",
                        max_length=6,
                    ),
                ),
                (
                    "success_url",
                    models.TextField(
                        blank=True,
                        help_text=
                        "The URL the customer will be directed to after the payment or subscriptioncreation is successful.",
                        max_length=5000,
                    ),
                ),
                (
                    "customer",
                    djstripe.fields.StripeForeignKey(
                        help_text=
                        "Customer this Checkout is for if one exists.",
                        null=True,
                        on_delete=django.db.models.deletion.SET_NULL,
                        to="djstripe.Customer",
                    ),
                ),
                (
                    "payment_intent",
                    djstripe.fields.StripeForeignKey(
                        help_text=
                        "PaymentIntent created if SKUs or line items were provided.",
                        null=True,
                        on_delete=django.db.models.deletion.SET_NULL,
                        to="djstripe.PaymentIntent",
                    ),
                ),
                (
                    "subscription",
                    djstripe.fields.StripeForeignKey(
                        help_text=
                        "Subscription created if one or more plans were provided.",
                        null=True,
                        on_delete=django.db.models.deletion.SET_NULL,
                        to="djstripe.Subscription",
                    ),
                ),
                (
                    "mode",
                    djstripe.fields.StripeEnumField(
                        blank=True,
                        enum=djstripe.enums.SessionMode,
                        help_text=
                        "The mode of the Checkout Session, one of payment, setup, or subscription.",
                        max_length=12,
                    ),
                ),
            ],
            options={
                "get_latest_by": "created",
                "abstract": False
            },
        ),
        migrations.AddField(
            model_name="charge",
            name="payment_method",
            field=djstripe.fields.StripeForeignKey(
                help_text="PaymentMethod used in this charge.",
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                related_name="charges",
                to="djstripe.PaymentMethod",
            ),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('find', '0002_auto_20181218_0145'),
    ]

    operations = [
        migrations.RenameModel(
            old_name='Images',
            new_name='Image',
        ),
        migrations.RenameField(
            model_name='image',
            old_name='person',
            new_name='person_id',
        ),
        migrations.RemoveField(
            model_name='missing_person',
            name='relatives',
        ),
        migrations.RemoveField(
            model_name='post',
            name='customer',
        ),
        migrations.RemoveField(
            model_name='post',
            name='post_type',
        ),
        migrations.AddField(
            model_name='post',
            name='missing_person_id',
            field=models.ForeignKey(
                default='000',
                on_delete=django.db.models.deletion.CASCADE,
                to='find.Missing_person'),
        ),
        migrations.AddField(
            model_name='post',
            name='post_type_id',
            field=models.ForeignKey(
                default='000',
                on_delete=django.db.models.deletion.CASCADE,
                to='find.Post_type'),
        ),
        migrations.AddField(
            model_name='post',
            name='relative_id',
            field=models.ForeignKey(
                default='000',
                on_delete=django.db.models.deletion.CASCADE,
                to='find.Relative'),
        ),
        migrations.AddField(
            model_name='post',
            name='user_id',
            field=models.ForeignKey(
                default='000',
                on_delete=django.db.models.deletion.CASCADE,
                to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='post',
            name='victim_id',
            field=models.ForeignKey(
                default='000',
                on_delete=django.db.models.deletion.CASCADE,
                to='find.Victim'),
        ),
        migrations.AddField(
            model_name='relative',
            name='email',
            field=models.EmailField(max_length=254, null=True),
        ),
        migrations.AlterField(
            model_name='missing_person',
            name='missing_place',
            field=models.CharField(max_length=100),
        ),
        migrations.AlterField(
            model_name='missing_person',
            name='nickname',
            field=models.CharField(max_length=20, null=True),
        ),
        migrations.AlterField(
            model_name='relative',
            name='adress',
            field=models.CharField(max_length=100, null=True),
        ),
        migrations.AlterField(
            model_name='victim',
            name='additional_information',
            field=models.CharField(max_length=50, null=True),
        ),
        migrations.AlterField(
            model_name='victim',
            name='place',
            field=models.CharField(max_length=100),
        ),
        migrations.DeleteModel(name='Adress', ),
        migrations.DeleteModel(name='Customer', ),
    ]
Exemple #8
0
class Migration(migrations.Migration):

    dependencies = [
        ('fantaapp', '0016_auto_20150807_1908'),
    ]

    operations = [
        migrations.CreateModel(
            name='GiornataLega',
            fields=[
                ('id',
                 models.AutoField(verbose_name='ID',
                                  serialize=False,
                                  auto_created=True,
                                  primary_key=True)),
                ('numero', models.PositiveSmallIntegerField()),
                ('giornata', models.ForeignKey(to='fantaapp.Giornata')),
                ('lega', models.ForeignKey(to='fantaapp.Lega')),
            ],
        ),
        migrations.CreateModel(
            name='IncontroCoppa',
            fields=[
                ('id',
                 models.AutoField(verbose_name='ID',
                                  serialize=False,
                                  auto_created=True,
                                  primary_key=True)),
                ('giornatalega', models.PositiveSmallIntegerField()),
                ('golcasa',
                 models.PositiveSmallIntegerField(null=True, blank=True)),
                ('goltrasferta',
                 models.PositiveSmallIntegerField(null=True, blank=True)),
                ('disputato', models.BooleanField(default=False)),
                ('allenatorecasa',
                 models.ForeignKey(related_name='AllenatoreCoppaCasa',
                                   blank=True,
                                   to='fantaapp.Allenatore',
                                   null=True)),
                ('allenatoretrasferta',
                 models.ForeignKey(related_name='AllenatoreCoppaTrasferta',
                                   blank=True,
                                   to='fantaapp.Allenatore',
                                   null=True)),
                ('formazionecasa',
                 models.ForeignKey(related_name='FormazioneCoppaCasa',
                                   blank=True,
                                   to='fantaapp.Formazione',
                                   null=True)),
                ('formazionetrasferta',
                 models.ForeignKey(related_name='FormazioneCoppaTrasferta',
                                   blank=True,
                                   to='fantaapp.Formazione',
                                   null=True)),
                ('giornata',
                 models.ForeignKey(blank=True,
                                   to='fantaapp.Giornata',
                                   null=True)),
                ('incontrocasa',
                 models.ForeignKey(related_name='IncontroCoppaCasa',
                                   blank=True,
                                   to='fantaapp.IncontroCoppa',
                                   null=True)),
                ('incontrotrasferta',
                 models.ForeignKey(related_name='IncontroCoppaTrasferta',
                                   blank=True,
                                   to='fantaapp.IncontroCoppa',
                                   null=True)),
                ('lega', models.ForeignKey(to='fantaapp.Lega')),
            ],
        ),
        migrations.RemoveField(
            model_name='incontrolega',
            name='giornata',
        ),
        migrations.AlterField(
            model_name='incontrolega',
            name='formazionecasa',
            field=models.ForeignKey(related_name='FormazioneCasa',
                                    blank=True,
                                    to='fantaapp.Formazione',
                                    null=True),
        ),
        migrations.AlterField(
            model_name='incontrolega',
            name='formazionetrasferta',
            field=models.ForeignKey(related_name='FormazioneTrasferta',
                                    blank=True,
                                    to='fantaapp.Formazione',
                                    null=True),
        ),
        migrations.AlterField(
            model_name='incontrolega',
            name='giornatalega',
            field=models.ForeignKey(to='fantaapp.GiornataLega'),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('transcription', '0003_auto_20170329_1410'),
    ]

    operations = [
        migrations.CreateModel(
            name='Annotation',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('type', models.CharField(default='0', help_text='Sorry, no help available for annotation.type', max_length=5, verbose_name='Kind of annotation')),
                ('mode', models.CharField(blank=True, help_text='Sorry, no help available for annotation.mode', max_length=5, verbose_name='Annotation mode')),
                ('format', models.CharField(blank=True, help_text='Sorry, no help available for annotation.format', max_length=5, verbose_name='Annotation format')),
            ],
        ),
        migrations.CreateModel(
            name='Anonymisation',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(default='0', help_text='Sorry, no help available for anonymisation', max_length=5, verbose_name='Anonymisation level of the transcription')),
            ],
            options={
                'verbose_name_plural': 'Anonymisation levels',
            },
        ),
        migrations.CreateModel(
            name='Availability',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(default='0', help_text='Sorry, no help available for interview.availability', max_length=5, verbose_name='Availability')),
            ],
            options={
                'verbose_name_plural': 'Availability descriptions',
            },
        ),
        migrations.CreateModel(
            name='FileFormat',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(default='0', help_text='Sorry, no help available for interview.format', max_length=5, verbose_name='Format of audio/video file')),
            ],
        ),
        migrations.CreateModel(
            name='Genre',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(default='0', help_text='Sorry, no help available for interview.genre', max_length=5, verbose_name='Genre of this transcription')),
            ],
        ),
        migrations.CreateModel(
            name='Language',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(default='0', help_text='Sorry, no help available for interview.language', max_length=5, verbose_name='Language in collection')),
            ],
        ),
        migrations.CreateModel(
            name='Participant',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('code', models.CharField(help_text='Sorry, no help available for participant.code', max_length=255, verbose_name='Code for this person')),
                ('name', models.CharField(help_text='Sorry, no help available for participant.name', max_length=255, verbose_name='Name of the person')),
                ('gender', models.CharField(default='0', help_text='Sorry, no help available for participant.gender', max_length=5, verbose_name='Gender of the person')),
                ('age', models.CharField(help_text='Sorry, no help available for participant.age', max_length=255, verbose_name='Age of the person')),
            ],
        ),
        migrations.CreateModel(
            name='SpatialCoverage',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('country', models.CharField(default='0', help_text='Sorry, no help available for coverage.spatial.country', max_length=5, verbose_name='Country included in this spatial coverage')),
                ('place', models.CharField(blank=True, help_text='Sorry, no help available for coverage.spatial.city', max_length=80, verbose_name='Place (city) for this spatial coverage')),
            ],
            options={
                'verbose_name_plural': 'Spatial coverages',
            },
        ),
        migrations.CreateModel(
            name='TemporalCoverage',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('startYear', models.CharField(default='2017', max_length=20, verbose_name='First year covered by the transcription')),
                ('endYear', models.CharField(default='2017', max_length=20, verbose_name='Last year covered by the transcription')),
            ],
            options={
                'verbose_name_plural': 'Spatial coverages',
            },
        ),
        migrations.AddField(
            model_name='descriptor',
            name='copyright',
            field=models.TextField(blank=True, help_text='Sorry, no help available for interview.copyright', verbose_name='Copyright for this transcription'),
        ),
        migrations.AddField(
            model_name='descriptor',
            name='interviewDate',
            field=models.DateField(blank=True, default=datetime.datetime.today, help_text='Sorry, no help available for interview.date', verbose_name='Date of the interview'),
        ),
        migrations.AddField(
            model_name='descriptor',
            name='interviewId',
            field=models.CharField(default='-', help_text='Sorry, no help available for interview.id', max_length=255, verbose_name='Interview ID'),
        ),
        migrations.AddField(
            model_name='descriptor',
            name='interviewLength',
            field=models.TimeField(blank=True, default='00:00:00', help_text='Sorry, no help available for interview.length', verbose_name='Length in time of the interview'),
        ),
        migrations.AddField(
            model_name='descriptor',
            name='modality',
            field=models.CharField(default='0', help_text='Sorry, no help available for interview.modality', max_length=5, verbose_name='Transcription modality'),
        ),
        migrations.AddField(
            model_name='descriptor',
            name='owner',
            field=models.CharField(default='-', max_length=255, verbose_name='Unique short descriptor identifier (10 characters max)'),
        ),
        migrations.AddField(
            model_name='descriptor',
            name='projectTitle',
            field=models.CharField(default='-', help_text='Sorry, no help available for project.title', max_length=255, verbose_name='Project title'),
        ),
        migrations.AddField(
            model_name='descriptor',
            name='topicList',
            field=models.TextField(blank=True, help_text='Sorry, no help available for interview.topiclist', verbose_name='List of topics for this transcription'),
        ),
        migrations.AlterField(
            model_name='descriptor',
            name='identifier',
            field=models.CharField(default='-', max_length=10, verbose_name='Unique short descriptor identifier (10 characters max)'),
        ),
        migrations.CreateModel(
            name='Interviewee',
            fields=[
                ('participant_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='transcription.Participant')),
                ('descriptor', models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, related_name='interviewees', to='transcription.Descriptor')),
            ],
            options={
                'verbose_name_plural': 'Persons that were interviewed',
            },
            bases=('transcription.participant',),
        ),
        migrations.CreateModel(
            name='Interviewer',
            fields=[
                ('participant_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='transcription.Participant')),
                ('descriptor', models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, related_name='interviewers', to='transcription.Descriptor')),
            ],
            options={
                'verbose_name_plural': 'Interviewers',
            },
            bases=('transcription.participant',),
        ),
        migrations.AddField(
            model_name='temporalcoverage',
            name='descriptor',
            field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, related_name='temporalcoverages', to='transcription.Descriptor'),
        ),
        migrations.AddField(
            model_name='spatialcoverage',
            name='descriptor',
            field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, related_name='spatialcoverages', to='transcription.Descriptor'),
        ),
        migrations.AddField(
            model_name='language',
            name='descriptor',
            field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, related_name='languages', to='transcription.Descriptor'),
        ),
        migrations.AddField(
            model_name='genre',
            name='descriptor',
            field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, related_name='genres', to='transcription.Descriptor'),
        ),
        migrations.AddField(
            model_name='fileformat',
            name='descriptor',
            field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, related_name='fileformats', to='transcription.Descriptor'),
        ),
        migrations.AddField(
            model_name='availability',
            name='descriptor',
            field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, related_name='availabilities', to='transcription.Descriptor'),
        ),
        migrations.AddField(
            model_name='anonymisation',
            name='descriptor',
            field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, related_name='anonymisations', to='transcription.Descriptor'),
        ),
        migrations.AddField(
            model_name='annotation',
            name='descriptor',
            field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, related_name='annotations', to='transcription.Descriptor'),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('tests', '0010_auto_20190625_1830'),
    ]

    operations = [
        migrations.RenameField(
            model_name='testorder',
            old_name='time',
            new_name='order_created_at',
        ),
        migrations.RemoveField(
            model_name='testorder',
            name='date',
        ),
        migrations.RemoveField(
            model_name='testorder',
            name='payment_option',
        ),
        migrations.AddField(
            model_name='testorder',
            name='booked_date',
            field=models.DateField(blank=True, null=True),
        ),
        migrations.AddField(
            model_name='testorder',
            name='booked_time_slot',
            field=models.CharField(
                blank=True,
                choices=[('10:00 AM - 2:00 PM', '10:00 AM - 2:00 PM'),
                         ('3:00 PM - 7:00 PM', '3:00 PM - 7:00 PM'),
                         ('8:00 PM - 10:00 PM', '8:00 PM - 10:00 PM')],
                max_length=20,
                null=True),
        ),
        migrations.AddField(
            model_name='testorder',
            name='payment_method',
            field=models.CharField(blank=True,
                                   choices=[('BKASH', 'Bkash'),
                                            ('CREDIT CARD', 'Credit Card'),
                                            ('ON SPOT', 'On Spot')],
                                   max_length=20,
                                   null=True),
        ),
        migrations.AddField(
            model_name='testorder',
            name='payment_type',
            field=models.CharField(blank=True,
                                   choices=[('Full Payment', 'Full Payment'),
                                            ('Half Payment', 'Half Payment')],
                                   max_length=20,
                                   null=True),
        ),
        migrations.AlterField(
            model_name='test',
            name='discount',
            field=models.PositiveIntegerField(blank=True, null=True),
        ),
        migrations.AlterField(
            model_name='test',
            name='price',
            field=models.PositiveIntegerField(blank=True, null=True),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('public', '0039_auto_20160204_1810'),
    ]

    operations = [
        migrations.AlterField(
            model_name='standardpage',
            name='body',
            field=wagtail.core.fields.StreamField(
                (('h2',
                  wagtail.core.blocks.CharBlock(
                      classname='title',
                      icon='title',
                      template='base/blocks/h2.html')),
                 ('h3',
                  wagtail.core.blocks.CharBlock(
                      classname='title',
                      icon='title',
                      template='base/blocks/h3.html')),
                 ('h4',
                  wagtail.core.blocks.CharBlock(
                      classname='title',
                      icon='title',
                      template='base/blocks/h4.html')),
                 ('h5',
                  wagtail.core.blocks.CharBlock(
                      classname='title',
                      icon='title',
                      template='base/blocks/h5.html')),
                 ('h6',
                  wagtail.core.blocks.CharBlock(
                      classname='title',
                      icon='title',
                      template='base/blocks/h6.html')),
                 ('paragraph',
                  wagtail.core.blocks.StructBlock(
                      (('paragraph', wagtail.core.blocks.RichTextBlock()), ))),
                 ('image',
                  wagtail.core.blocks.StructBlock(
                      (('image', wagtail.images.blocks.ImageChooserBlock()),
                       ('title',
                        wagtail.core.blocks.CharBlock(required=False)),
                       ('citation',
                        wagtail.core.blocks.CharBlock(required=False)),
                       ('caption',
                        wagtail.core.blocks.TextBlock(required=False)),
                       ('alt_text',
                        wagtail.core.blocks.CharBlock(required=False)),
                       ('alignment', base.models.ImageFormatChoiceBlock()),
                       ('source',
                        wagtail.core.blocks.CharBlock(required=False)),
                       ('lightbox',
                        wagtail.core.blocks.BooleanBlock(default=False,
                                                         required=False))),
                      label='Image')),
                 ('blockquote',
                  wagtail.core.blocks.StructBlock(
                      (('quote', wagtail.core.blocks.TextBlock('quote title')),
                       ('attribution',
                        wagtail.core.blocks.CharBlock(required=False))))),
                 ('button',
                  wagtail.core.blocks.StructBlock(
                      (('button_type',
                        wagtail.core.blocks.ChoiceBlock(
                            choices=[('btn-primary',
                                      'Primary'), ('btn-default', 'Subtle')])),
                       ('button_text',
                        wagtail.core.blocks.CharBlock(max_length=20)),
                       ('link_external',
                        wagtail.core.blocks.URLBlock(required=False)),
                       ('link_page',
                        wagtail.core.blocks.PageChooserBlock(required=False)),
                       ('link_document',
                        wagtail.documents.blocks.DocumentChooserBlock(
                            required=False))))),
                 ('video', wagtail.embeds.blocks.EmbedBlock(icon='media')),
                 ('code',
                  wagtail.core.blocks.StructBlock(
                      (('language',
                        wagtail.core.blocks.ChoiceBlock(
                            choices=[('bash', 'Bash/Shell'), (
                                'css',
                                'CSS'), ('html',
                                         'HTML'), ('javascript', 'Javascript'),
                                     ('json',
                                      'JSON'), ('ocaml',
                                                'OCaml'), ('php5', 'PHP'),
                                     ('html+php',
                                      'PHP/HTML'), (
                                          'python',
                                          'Python'), ('scss',
                                                      'SCSS'), ('yaml',
                                                                'YAML')])),
                       ('code', wagtail.core.blocks.TextBlock())))),
                 ('agenda_item',
                  wagtail.core.blocks.StructBlock((
                      ('start_time',
                       wagtail.core.blocks.TimeBlock(icon='time',
                                                     required=False)),
                      ('end_time',
                       wagtail.core.blocks.TimeBlock(icon='time',
                                                     required=False)),
                      ('session_title',
                       wagtail.core.blocks.CharBlock(
                           help_text=
                           'Title of the session.             Can be used as title of the talk in some situations.',
                           icon='title',
                           required=False)),
                      ('event',
                       wagtail.core.blocks.
                       ListBlock(wagtail.core.blocks.StructBlock(((
                           'title',
                           wagtail.core.blocks.CharBlock(
                               help_text='Talk title, workshop title, etc.',
                               required=False)
                       ), ('presenters',
                           wagtail.core.blocks.CharBlock(
                               help_text=
                               'Comma separated list of presenters             (if more than one)',
                               required=False)), (
                                   'room_number',
                                   wagtail.core.blocks.CharBlock(
                                       required=False)), (
                                           'description',
                                           wagtail.core.blocks.RichTextBlock(
                                               required=False)))),
                                 help_text=
                                 'A talk or event with a title, presenter             room number, and description',
                                 icon='edit',
                                 label=' '))),
                                                  icon='date',
                                                  template=
                                                  'base/blocks/agenda.html')
                  ))),
        ),
    ]
Exemple #12
0
class Migration(migrations.Migration):

    dependencies = [
        ('app', '0010_auto_20190110_2232'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='address',
            options={
                'verbose_name': 'адрес',
                'verbose_name_plural': 'адреса'
            },
        ),
        migrations.AlterModelOptions(
            name='customer',
            options={
                'verbose_name': 'клиент',
                'verbose_name_plural': 'клиенты'
            },
        ),
        migrations.AlterModelOptions(
            name='option',
            options={
                'verbose_name': 'опция',
                'verbose_name_plural': 'опции'
            },
        ),
        migrations.AlterModelOptions(
            name='order',
            options={
                'verbose_name': 'заказ',
                'verbose_name_plural': 'заказы'
            },
        ),
        migrations.AlterModelOptions(
            name='parameter',
            options={
                'verbose_name': 'параметр',
                'verbose_name_plural': 'параметры'
            },
        ),
        migrations.AlterModelOptions(
            name='phone',
            options={
                'verbose_name': 'телефон',
                'verbose_name_plural': 'телефоны'
            },
        ),
        migrations.AlterModelOptions(
            name='product',
            options={
                'verbose_name': 'товар',
                'verbose_name_plural': 'товары'
            },
        ),
        migrations.AlterModelOptions(
            name='producttype',
            options={
                'verbose_name': 'тип товаров',
                'verbose_name_plural': 'типы товаров'
            },
        ),
        migrations.AlterField(
            model_name='address',
            name='area',
            field=models.CharField(max_length=50, verbose_name='Область'),
        ),
        migrations.AlterField(
            model_name='address',
            name='building',
            field=models.CharField(default='',
                                   max_length=10,
                                   verbose_name='Корпус'),
        ),
        migrations.AlterField(
            model_name='address',
            name='city',
            field=models.CharField(max_length=50, verbose_name='Город'),
        ),
        migrations.AlterField(
            model_name='address',
            name='customer',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='app.Customer',
                verbose_name='Клиент'),
        ),
        migrations.AlterField(
            model_name='address',
            name='entrance',
            field=models.PositiveSmallIntegerField(verbose_name='Подъезд'),
        ),
        migrations.AlterField(
            model_name='address',
            name='flat',
            field=models.PositiveIntegerField(verbose_name='Квартира'),
        ),
        migrations.AlterField(
            model_name='address',
            name='floor',
            field=models.PositiveSmallIntegerField(verbose_name='Этаж'),
        ),
        migrations.AlterField(
            model_name='address',
            name='house',
            field=models.CharField(max_length=20, verbose_name='Дом'),
        ),
        migrations.AlterField(
            model_name='address',
            name='index',
            field=models.PositiveIntegerField(verbose_name='Индекс'),
        ),
        migrations.AlterField(
            model_name='address',
            name='street_name',
            field=models.CharField(max_length=50,
                                   verbose_name='Название улицы'),
        ),
        migrations.AlterField(
            model_name='address',
            name='street_type',
            field=models.CharField(choices=[('ул', 'улица'),
                                            ('пер', 'переулок'),
                                            ('пр', 'проезд'),
                                            ('бул', 'бульвар'),
                                            ('пл', 'площадь'), ('тр', 'тракт'),
                                            ('шс', 'шоссе')],
                                   default='ул',
                                   max_length=30,
                                   verbose_name='Тип улицы'),
        ),
        migrations.AlterField(
            model_name='option',
            name='name',
            field=models.CharField(max_length=100, verbose_name='Название'),
        ),
        migrations.AlterField(
            model_name='option',
            name='parameter',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='app.Parameter',
                verbose_name='Параметр'),
        ),
        migrations.AlterField(
            model_name='order',
            name='comment',
            field=models.TextField(default='', verbose_name='Комментарий'),
        ),
        migrations.AlterField(
            model_name='order',
            name='customer',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='app.Customer',
                verbose_name='Клиент'),
        ),
        migrations.AlterField(
            model_name='parameter',
            name='name',
            field=models.CharField(max_length=100, verbose_name='Название'),
        ),
        migrations.AlterField(
            model_name='phone',
            name='customer',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='app.Customer',
                verbose_name='Клиент'),
        ),
        migrations.AlterField(
            model_name='phone',
            name='number',
            field=models.CharField(max_length=30, verbose_name='Номер'),
        ),
        migrations.AlterField(
            model_name='product',
            name='comment',
            field=models.TextField(default='', verbose_name='Комментарий'),
        ),
        migrations.AlterField(
            model_name='product',
            name='name',
            field=models.CharField(max_length=200, verbose_name='Название'),
        ),
        migrations.AlterField(
            model_name='product',
            name='number',
            field=models.PositiveIntegerField(default=1,
                                              verbose_name='Количество'),
        ),
        migrations.AlterField(
            model_name='product',
            name='options',
            field=models.ManyToManyField(to='app.Option',
                                         verbose_name='Опции'),
        ),
        migrations.AlterField(
            model_name='product',
            name='order',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='app.Order',
                verbose_name='Заказ'),
        ),
        migrations.AlterField(
            model_name='product',
            name='price',
            field=models.FloatField(verbose_name='Цена продажи'),
        ),
        migrations.AlterField(
            model_name='product',
            name='purchase_price',
            field=models.FloatField(verbose_name='Закупочная цена'),
        ),
        migrations.AlterField(
            model_name='product',
            name='type',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='app.ProductType',
                verbose_name='Тип'),
        ),
        migrations.AlterField(
            model_name='producttype',
            name='name',
            field=models.CharField(max_length=50, verbose_name='Название'),
        ),
        migrations.AlterField(
            model_name='producttype',
            name='parameters',
            field=models.ManyToManyField(to='app.Parameter',
                                         verbose_name='Параметры'),
        ),
    ]
Exemple #13
0
class Migration(migrations.Migration):

    dependencies = [
        ('horsequick', '0009_auto_20200717_1519'),
    ]

    operations = [
        migrations.CreateModel(
            name='Domain_Info',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('domain_name',
                 models.CharField(max_length=50, verbose_name='领域名')),
                ('domain_brief',
                 models.CharField(max_length=100,
                                  null=True,
                                  verbose_name='领域简介')),
            ],
            options={
                'verbose_name': '领域表',
                'ordering': ['-id'],
            },
        ),
        migrations.RenameModel(
            old_name='User_Group_Relation',
            new_name='User_Domain_Group_Relation',
        ),
        migrations.AlterModelOptions(
            name='user_domain_group_relation',
            options={
                'ordering': ['-id'],
                'verbose_name': '用户域组关系表'
            },
        ),
        migrations.RenameField(
            model_name='user_domain_group_relation',
            old_name='group_belong',
            new_name='belong_group',
        ),
        migrations.RemoveField(
            model_name='user_info',
            name='user_role',
        ),
        migrations.AddField(
            model_name='user_group_info',
            name='group_name',
            field=models.CharField(default='AA',
                                   max_length=50,
                                   verbose_name='组名'),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='user_group_info',
            name='group_brief',
            field=models.CharField(max_length=50,
                                   null=True,
                                   verbose_name='组简介'),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('books', '0007_auto_20170718_2214'),
    ]

    operations = [
        migrations.AlterField(
            model_name='book',
            name='author',
            field=models.CharField(max_length=100, verbose_name='저자'),
        ),
        migrations.AlterField(
            model_name='book',
            name='created_at',
            field=models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='생성일'),
        ),
        migrations.AlterField(
            model_name='book',
            name='description',
            field=models.CharField(blank=True, max_length=300, verbose_name='책소개'),
        ),
        migrations.AlterField(
            model_name='book',
            name='discount',
            field=models.PositiveIntegerField(blank=True, null=True, verbose_name='할인가격'),
        ),
        migrations.AlterField(
            model_name='book',
            name='image',
            field=models.URLField(blank=True, verbose_name='표지이미지'),
        ),
        migrations.AlterField(
            model_name='book',
            name='isbn',
            field=models.CharField(max_length=25, unique=True, verbose_name='ISBN'),
        ),
        migrations.AlterField(
            model_name='book',
            name='isbn13',
            field=models.CharField(max_length=13, unique=True, verbose_name='ISBN(13자리)'),
        ),
        migrations.AlterField(
            model_name='book',
            name='link',
            field=models.URLField(blank=True, verbose_name='원본링크'),
        ),
        migrations.AlterField(
            model_name='book',
            name='price',
            field=models.PositiveIntegerField(verbose_name='가격'),
        ),
        migrations.AlterField(
            model_name='book',
            name='pubdate',
            field=models.CharField(blank=True, max_length=10, verbose_name='출판일'),
        ),
        migrations.AlterField(
            model_name='book',
            name='publisher',
            field=models.CharField(max_length=100, verbose_name='출판사'),
        ),
        migrations.AlterField(
            model_name='book',
            name='rent_end',
            field=models.DateTimeField(blank=True, null=True, verbose_name='대여 종료일'),
        ),
        migrations.AlterField(
            model_name='book',
            name='rent_start',
            field=models.DateTimeField(blank=True, null=True, verbose_name='대여 시작일'),
        ),
        migrations.AlterField(
            model_name='book',
            name='rent_user',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='대출회원'),
        ),
        migrations.AlterField(
            model_name='book',
            name='title',
            field=models.CharField(max_length=100, verbose_name='도서명'),
        ),
        migrations.AlterField(
            model_name='wishbook',
            name='author',
            field=models.CharField(max_length=100, verbose_name='저자'),
        ),
        migrations.AlterField(
            model_name='wishbook',
            name='created_at',
            field=models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='생성일'),
        ),
        migrations.AlterField(
            model_name='wishbook',
            name='description',
            field=models.CharField(blank=True, max_length=300, verbose_name='책소개'),
        ),
        migrations.AlterField(
            model_name='wishbook',
            name='discount',
            field=models.PositiveIntegerField(blank=True, null=True, verbose_name='할인가격'),
        ),
        migrations.AlterField(
            model_name='wishbook',
            name='image',
            field=models.URLField(blank=True, verbose_name='표지이미지'),
        ),
        migrations.AlterField(
            model_name='wishbook',
            name='isbn',
            field=models.CharField(max_length=50, unique=True, verbose_name='ISBN'),
        ),
        migrations.AlterField(
            model_name='wishbook',
            name='isbn13',
            field=models.CharField(max_length=20, unique=True, verbose_name='ISBN(13자리)'),
        ),
        migrations.AlterField(
            model_name='wishbook',
            name='link',
            field=models.URLField(blank=True, verbose_name='원본링크'),
        ),
        migrations.AlterField(
            model_name='wishbook',
            name='price',
            field=models.PositiveIntegerField(verbose_name='가격'),
        ),
        migrations.AlterField(
            model_name='wishbook',
            name='pubdate',
            field=models.CharField(blank=True, max_length=10, verbose_name='출판일'),
        ),
        migrations.AlterField(
            model_name='wishbook',
            name='publisher',
            field=models.CharField(max_length=100, verbose_name='출판사'),
        ),
        migrations.AlterField(
            model_name='wishbook',
            name='title',
            field=models.CharField(max_length=100, verbose_name='도서명'),
        ),
        migrations.AlterField(
            model_name='wishbook',
            name='wish_user',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='구매 신청자'),
        ),
    ]
Exemple #15
0
class Migration(migrations.Migration):

    dependencies = [
        ('exam', '0007_auto_20171205_1125'),
    ]

    operations = [
        migrations.AddField(
            model_name='center',
            name='center_name',
            field=models.CharField(blank=True, max_length=128, null=True),
        ),
        migrations.AddField(
            model_name='center',
            name='create_time',
            field=models.DateTimeField(auto_now_add=True, null=True),
        ),
        migrations.AddField(
            model_name='center',
            name='update_time',
            field=models.DateTimeField(auto_now=True, null=True),
        ),
        migrations.AddField(
            model_name='exam',
            name='create_time',
            field=models.DateTimeField(auto_now_add=True, null=True),
        ),
        migrations.AddField(
            model_name='exam',
            name='update_time',
            field=models.DateTimeField(auto_now=True, null=True),
        ),
        migrations.AddField(
            model_name='office',
            name='create_time',
            field=models.DateTimeField(auto_now_add=True, null=True),
        ),
        migrations.AddField(
            model_name='office',
            name='update_time',
            field=models.DateTimeField(auto_now=True, null=True),
        ),
        migrations.AddField(
            model_name='school',
            name='create_time',
            field=models.DateTimeField(auto_now_add=True, null=True),
        ),
        migrations.AddField(
            model_name='school',
            name='update_time',
            field=models.DateTimeField(auto_now=True, null=True),
        ),
        migrations.AddField(
            model_name='schoolexam',
            name='create_time',
            field=models.DateTimeField(auto_now_add=True, null=True),
        ),
        migrations.AddField(
            model_name='schoolexam',
            name='update_time',
            field=models.DateTimeField(auto_now=True, null=True),
        ),
        migrations.AddField(
            model_name='teacher',
            name='create_time',
            field=models.DateTimeField(auto_now_add=True, null=True),
        ),
        migrations.AddField(
            model_name='teacher',
            name='update_time',
            field=models.DateTimeField(auto_now=True, null=True),
        ),
        migrations.AddField(
            model_name='teacherexam',
            name='create_time',
            field=models.DateTimeField(auto_now_add=True, null=True),
        ),
        migrations.AddField(
            model_name='teacherexam',
            name='update_time',
            field=models.DateTimeField(auto_now=True, null=True),
        ),
        migrations.AlterField(
            model_name='teacherexam',
            name='schoolexam',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to='exam.Schoolexam'),
        ),
    ]
Exemple #16
0
class Migration(migrations.Migration):

    dependencies = [
        ('boards', '0025_auto_20180424_1409'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='board',
            name='image1',
        ),
        migrations.AddField(
            model_name='board',
            name='category',
            field=models.CharField(default=412, max_length=100),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='board',
            name='companyname',
            field=models.CharField(default=124, max_length=100),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='board',
            name='images',
            field=models.ForeignKey(default=4121, on_delete=django.db.models.deletion.CASCADE, related_name='+', to='boards.ProductImages'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='board',
            name='proddescription',
            field=models.TextField(default=14244, max_length=1000),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='board',
            name='productid',
            field=models.CharField(default=411331, max_length=100),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='board',
            name='searchkeys',
            field=models.CharField(default=43111, max_length=100),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='board',
            name='subcategory',
            field=models.CharField(default=4314314131, max_length=100),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='board',
            name='tags',
            field=models.CharField(default=1341414141, max_length=100),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='board',
            name='tbipartnumber',
            field=models.TextField(default=13444113, max_length=100),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='board',
            name='value',
            field=models.CharField(default=4313131, max_length=100),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='board',
            name='name',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='+', to='boards.ProductImages'),
        ),
    ]
Exemple #17
0
class Migration(migrations.Migration):

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

    operations = [
        migrations.CreateModel(
            name='Language',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name',
                 models.CharField(
                     help_text=
                     "Enter a the book's natural language (e.g. English, French, Japanese etc.)",
                     max_length=200)),
            ],
        ),
        migrations.AlterModelOptions(
            name='bookinstance',
            options={
                'ordering': ['due_back'],
                'permissions':
                (('can_mark_returned', 'Set book as returned'), )
            },
        ),
        migrations.AddField(
            model_name='bookinstance',
            name='borrower',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to=settings.AUTH_USER_MODEL),
        ),
        migrations.AlterField(
            model_name='author',
            name='date_of_death',
            field=models.DateField(blank=True, null=True, verbose_name='died'),
        ),
        migrations.AlterField(
            model_name='bookinstance',
            name='status',
            field=models.CharField(blank=True,
                                   choices=[('d', 'Maintenance'),
                                            ('o', 'On loan'),
                                            ('a', 'Available'),
                                            ('r', 'Reserved')],
                                   default='d',
                                   help_text='Book availability',
                                   max_length=1),
        ),
        migrations.AddField(
            model_name='book',
            name='language',
            field=models.ForeignKey(
                null=True,
                on_delete=django.db.models.deletion.SET_NULL,
                to='catalog.Language'),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('djangocms_picture', '0003_migrate_to_filer'),
    ]

    operations = [
        migrations.AddField(
            model_name='picture',
            name='attributes',
            field=djangocms_attributes_field.fields.AttributesField(default=dict, verbose_name='Attributes', blank=True),
        ),
        migrations.AddField(
            model_name='picture',
            name='caption_text',
            field=models.TextField(help_text='Provide a description, attribution, copyright or other information.', verbose_name='Caption text', blank=True),
        ),
        migrations.AddField(
            model_name='picture',
            name='link_attributes',
            field=djangocms_attributes_field.fields.AttributesField(default=dict, verbose_name='Link attributes', blank=True),
        ),
        migrations.AddField(
            model_name='picture',
            name='link_target',
            field=models.CharField(blank=True, max_length=255, verbose_name='Link target', choices=LINK_TARGET),
        ),
        migrations.AddField(
            model_name='picture',
            name='use_automatic_scaling',
            field=models.BooleanField(default=True, help_text='Uses the placeholder dimensions to automatically calculate the size.', verbose_name='Automatic scaling'),
        ),
        migrations.AddField(
            model_name='picture',
            name='use_crop',
            field=models.BooleanField(default=False, help_text='Crops the image according to the thumbnail settings provided in the template.', verbose_name='Crop image'),
        ),
        migrations.AddField(
            model_name='picture',
            name='use_no_cropping',
            field=models.BooleanField(default=False, help_text='Outputs the raw image without cropping.', verbose_name='Use original image'),
        ),
        migrations.AddField(
            model_name='picture',
            name='use_upscale',
            field=models.BooleanField(default=False, help_text='Upscales the image to the size of the thumbnail settings in the template.', verbose_name='Upscale image'),
        ),
        migrations.AddField(
            model_name='picture',
            name='thumbnail_options',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, blank=True, to='filer.ThumbnailOption', help_text='Overrides width, height, and crop; scales up to the provided preset dimensions.', null=True, verbose_name='Thumbnail options'),
        ),
        migrations.AddField(
            model_name='picture',
            name='external_picture',
            field=models.URLField(help_text='If provided, overrides the embedded image. Certain options such as cropping are not applicable to external images.', max_length=255, verbose_name='External image', blank=True),
        ),
        migrations.AddField(
            model_name='picture',
            name='template',
            field=models.CharField(default=get_templates()[0][0], max_length=255, verbose_name='Template', choices=get_templates()),
        ),
        migrations.RenameField(
            model_name='picture',
            old_name='float',
            new_name='alignment',
        ),
        migrations.RenameField(
            model_name='picture',
            old_name='url',
            new_name='link_url',
        ),
        migrations.RenameField(
            model_name='picture',
            old_name='page_link',
            new_name='link_page',
        ),
        migrations.AlterField(
            model_name='picture',
            name='width',
            field=models.PositiveIntegerField(help_text='The image width as number in pixels. Example: "720" and not "720px".', null=True, verbose_name='Width', blank=True),
        ),
        migrations.AlterField(
            model_name='picture',
            name='height',
            field=models.PositiveIntegerField(help_text='The image height as number in pixels. Example: "720" and not "720px".', null=True, verbose_name='Height', blank=True),
        ),
        migrations.AlterField(
            model_name='picture',
            name='link_page',
            field=cms.models.fields.PageField(on_delete=django.db.models.deletion.SET_NULL, blank=True, to='cms.Page', help_text='Wraps the image in a link to an internal (page) URL.', null=True, verbose_name='Internal URL'),
        ),
        migrations.AlterField(
            model_name='picture',
            name='picture',
            field=filer.fields.image.FilerImageField(related_name='+', on_delete=django.db.models.deletion.SET_NULL,
                                                     verbose_name='Image', blank=True, to=settings.FILER_IMAGE_MODEL, null=True),
        ),
        migrations.AlterField(
            model_name='picture',
            name='cmsplugin_ptr',
            field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, parent_link=True, related_name='djangocms_picture_picture', primary_key=True, serialize=False, to='cms.CMSPlugin'),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('judge', '0016_auto_20200720_1553'),
    ]

    operations = [
        migrations.AddField(
            model_name='collection',
            name='zipfile',
            field=models.FileField(blank=True,
                                   default=None,
                                   null=True,
                                   upload_to='problem_zips/'),
        ),
        migrations.AlterField(
            model_name='dmlproblem',
            name='expected_result',
            field=django.contrib.postgres.fields.jsonb.JSONField(
                blank=True,
                encoder=django.core.serializers.json.DjangoJSONEncoder),
        ),
        migrations.AlterField(
            model_name='dmlproblem',
            name='solution',
            field=models.TextField(
                blank=True,
                max_length=5000,
                validators=[django.core.validators.MinLengthValidator(1)]),
        ),
        migrations.AlterField(
            model_name='functionproblem',
            name='calls',
            field=models.TextField(
                blank=True,
                default='',
                max_length=5000,
                validators=[django.core.validators.MinLengthValidator(1)]),
        ),
        migrations.AlterField(
            model_name='functionproblem',
            name='expected_result',
            field=django.contrib.postgres.fields.jsonb.JSONField(
                blank=True,
                encoder=django.core.serializers.json.DjangoJSONEncoder),
        ),
        migrations.AlterField(
            model_name='functionproblem',
            name='solution',
            field=models.TextField(
                blank=True,
                max_length=5000,
                validators=[django.core.validators.MinLengthValidator(1)]),
        ),
        migrations.AlterField(
            model_name='procproblem',
            name='expected_result',
            field=django.contrib.postgres.fields.jsonb.JSONField(
                blank=True,
                encoder=django.core.serializers.json.DjangoJSONEncoder),
        ),
        migrations.AlterField(
            model_name='procproblem',
            name='proc_call',
            field=models.TextField(
                blank=True,
                max_length=1000,
                validators=[django.core.validators.MinLengthValidator(1)]),
        ),
        migrations.AlterField(
            model_name='procproblem',
            name='solution',
            field=models.TextField(
                blank=True,
                max_length=5000,
                validators=[django.core.validators.MinLengthValidator(1)]),
        ),
        migrations.AlterField(
            model_name='triggerproblem',
            name='expected_result',
            field=django.contrib.postgres.fields.jsonb.JSONField(
                blank=True,
                encoder=django.core.serializers.json.DjangoJSONEncoder),
        ),
        migrations.AlterField(
            model_name='triggerproblem',
            name='solution',
            field=models.CharField(
                blank=True,
                max_length=5000,
                validators=[django.core.validators.MinLengthValidator(1)]),
        ),
        migrations.AlterField(
            model_name='triggerproblem',
            name='tests',
            field=models.TextField(
                blank=True,
                max_length=1000,
                validators=[django.core.validators.MinLengthValidator(1)]),
        ),
    ]
Exemple #20
0
class Migration(migrations.Migration):

    dependencies = [
        ('tnt', '0003_auto_20180416_2330'),
    ]

    operations = [
        migrations.AddField(
            model_name='location',
            name='location_id',
            field=models.PositiveIntegerField(default=0),
        ),
        migrations.AddField(
            model_name='rfdevice',
            name='device_id',
            field=models.PositiveIntegerField(default=0),
        ),
        migrations.AddField(
            model_name='rfdevice',
            name='low_battery',
            field=models.BooleanField(default=False),
        ),
        migrations.AddField(
            model_name='rfdeviceproduct',
            name='product_id',
            field=models.PositiveIntegerField(default=0),
        ),
        migrations.AddField(
            model_name='rfdevicetype',
            name='type_id',
            field=models.PositiveIntegerField(default=0),
        ),
        migrations.AlterField(
            model_name='location',
            name='id',
            field=models.AutoField(auto_created=True,
                                   primary_key=True,
                                   serialize=False,
                                   verbose_name='ID'),
        ),
        migrations.AlterField(
            model_name='rfdevice',
            name='id',
            field=models.AutoField(auto_created=True,
                                   primary_key=True,
                                   serialize=False,
                                   verbose_name='ID'),
        ),
        migrations.AlterField(
            model_name='rfdeviceproduct',
            name='id',
            field=models.AutoField(auto_created=True,
                                   primary_key=True,
                                   serialize=False,
                                   verbose_name='ID'),
        ),
        migrations.AlterField(
            model_name='rfdevicetype',
            name='id',
            field=models.AutoField(auto_created=True,
                                   primary_key=True,
                                   serialize=False,
                                   verbose_name='ID'),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ("contenttypes", "0002_remove_content_type_name"),
        ("actstream", "0003_add_follow_flag"),
        ("notifications", "0001_initial"),
    ]

    operations = [
        migrations.AddField(
            model_name="notification",
            name="action_object_content_type",
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name="notification_action_object",
                to="contenttypes.contenttype",
            ),
        ),
        migrations.AddField(
            model_name="notification",
            name="action_object_object_id",
            field=models.CharField(blank=True,
                                   db_index=True,
                                   max_length=255,
                                   null=True),
        ),
        migrations.AddField(
            model_name="notification",
            name="actor_content_type",
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name="notification_actor",
                to="contenttypes.contenttype",
            ),
        ),
        migrations.AddField(
            model_name="notification",
            name="actor_object_id",
            field=models.CharField(blank=True,
                                   db_index=True,
                                   max_length=255,
                                   null=True),
        ),
        migrations.AddField(
            model_name="notification",
            name="context_class",
            field=models.CharField(
                blank=True,
                help_text=
                "Bootstrap contextual class to style notification list items.",
                max_length=10,
                null=True,
            ),
        ),
        migrations.AddField(
            model_name="notification",
            name="description",
            field=models.TextField(blank=True, null=True),
        ),
        migrations.AddField(
            model_name="notification",
            name="message",
            field=models.CharField(blank=True,
                                   db_index=True,
                                   max_length=255,
                                   null=True),
        ),
        migrations.AddField(
            model_name="notification",
            name="target_content_type",
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name="notification_target",
                to="contenttypes.contenttype",
            ),
        ),
        migrations.AddField(
            model_name="notification",
            name="target_object_id",
            field=models.CharField(blank=True,
                                   db_index=True,
                                   max_length=255,
                                   null=True),
        ),
        migrations.AddField(
            model_name="notification",
            name="type",
            field=models.CharField(
                choices=[
                    ("GENERIC", "Generic"),
                    ("FORUM-POST", "Forum post"),
                    ("FORUM-REPLY", "Forum post reply"),
                    ("ACCESS-REQUEST", "Access request"),
                    ("REQUEST-UPDATE", "Request update"),
                    ("NEW-ADMIN", "New admin"),
                    ("EVALUATION-STATUS", "Evaluation status update"),
                    ("MISSING-METHOD", "Missing method"),
                    ("JOB-STATUS", "Job status update"),
                    ("IMAGE-IMPORT", "Image import status update"),
                ],
                default="GENERIC",
                help_text="Of what type is this notification?",
                max_length=20,
            ),
        ),
        AddDefaultValue(model_name="notification",
                        name="type",
                        value="GENERIC"),
        migrations.AlterField(
            model_name="notification",
            name="action",
            field=models.ForeignKey(
                blank=True,
                help_text="Which action is associated with this notification?",
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to="actstream.action",
            ),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('gissmo', '0026_auto_20160126_1534'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='actor',
            options={'ordering': ['actor_name'], 'verbose_name': 'Actor'},
        ),
        migrations.AlterModelOptions(
            name='built',
            options={'verbose_name': 'Place'},
        ),
        migrations.AlterModelOptions(
            name='builttype',
            options={'ordering': ['built_type_name'], 'verbose_name': 'Place type'},
        ),
        migrations.AlterModelOptions(
            name='calibrationunit',
            options={'verbose_name': 'Unit type'},
        ),
        migrations.AlterModelOptions(
            name='chain',
            options={'verbose_name': 'Acquisition chain'},
        ),
        migrations.AlterModelOptions(
            name='chainconfig',
            options={'verbose_name': 'Configuration'},
        ),
        migrations.AlterModelOptions(
            name='channel',
            options={'verbose_name': 'Channel'},
        ),
        migrations.AlterModelOptions(
            name='channelcode',
            options={'verbose_name': 'Channel code'},
        ),
        migrations.AlterModelOptions(
            name='datatype',
            options={'verbose_name': 'Data type'},
        ),
        migrations.AlterModelOptions(
            name='equipdoc',
            options={'verbose_name': 'Document (equip.)', 'verbose_name_plural': 'Documents (equip.)'},
        ),
        migrations.AlterModelOptions(
            name='equipdoctype',
            options={'verbose_name': 'Document type (equip.)', 'verbose_name_plural': 'Document types (equip.)'},
        ),
        migrations.AlterModelOptions(
            name='equipment',
            options={'verbose_name': 'Equipment'},
        ),
        migrations.AlterModelOptions(
            name='equipmodel',
            options={'ordering': ['equip_model_name'], 'verbose_name': 'Equipment model'},
        ),
        migrations.AlterModelOptions(
            name='equipmodeldoc',
            options={'verbose_name': "Document (equip.'s model)", 'verbose_name_plural': "Documents (equip.'s model)"},
        ),
        migrations.AlterModelOptions(
            name='equipmodeldoctype',
            options={'verbose_name': 'Document type (equip. model)', 'verbose_name_plural': 'Document types (equip. model)'},
        ),
        migrations.AlterModelOptions(
            name='equipsupertype',
            options={'ordering': ['equip_supertype_name'], 'verbose_name': 'Equipment Supertype'},
        ),
        migrations.AlterModelOptions(
            name='equiptype',
            options={'ordering': ['equip_type_name'], 'verbose_name': 'Equipment type'},
        ),
        migrations.AlterModelOptions(
            name='forbiddenequipmentmodel',
            options={'verbose_name': "Forbidden Equipment's model"},
        ),
        migrations.AlterModelOptions(
            name='intervactor',
            options={'verbose_name': 'Operator'},
        ),
        migrations.AlterModelOptions(
            name='intervention',
            options={'verbose_name': 'Intervention'},
        ),
        migrations.AlterModelOptions(
            name='intervequip',
            options={'verbose_name': 'Equipment intervention'},
        ),
        migrations.AlterModelOptions(
            name='intervstation',
            options={'verbose_name': 'Site intervention'},
        ),
        migrations.AlterModelOptions(
            name='loggedactions',
            options={'managed': False, 'verbose_name': 'Logged action'},
        ),
        migrations.AlterModelOptions(
            name='network',
            options={'verbose_name': 'Network'},
        ),
        migrations.AlterModelOptions(
            name='parameterequip',
            options={'verbose_name': "Equipment's parameter"},
        ),
        migrations.AlterModelOptions(
            name='parametervalue',
            options={'verbose_name': "Parameter's value"},
        ),
        migrations.AlterModelOptions(
            name='project',
            options={'verbose_name': 'Project'},
        ),
        migrations.AlterModelOptions(
            name='projectuser',
            options={'verbose_name': "User's project"},
        ),
        migrations.AlterModelOptions(
            name='stationdoc',
            options={'verbose_name': 'Document (site)', 'verbose_name_plural': 'Documents (site)'},
        ),
        migrations.AlterModelOptions(
            name='stationdoctype',
            options={'verbose_name': 'Document type (site)', 'verbose_name_plural': 'Document types (site)'},
        ),
        migrations.AlterModelOptions(
            name='stationsite',
            options={'ordering': ['station_code'], 'verbose_name': 'Site'},
        ),
        migrations.RemoveField(
            model_name='network',
            name='code',
        ),
        migrations.AlterField(
            model_name='actor',
            name='actor_name',
            field=models.CharField(unique=True, max_length=50, verbose_name='Name'),
        ),
        migrations.AlterField(
            model_name='actor',
            name='actor_note',
            field=models.TextField(null=True, blank=True, verbose_name='Note'),
        ),
        migrations.AlterField(
            model_name='actor',
            name='actor_parent',
            field=models.ForeignKey(null=True, blank=True, to='gissmo.Actor', verbose_name='Membership group'),
        ),
        migrations.AlterField(
            model_name='actor',
            name='actor_type',
            field=models.IntegerField(default=7, choices=[(1, 'Observatory/Laboratory'), (2, 'Engineer/Technician'), (3, 'Network'), (4, 'Business'), (5, 'Customer service Company'), (6, 'Unknown'), (7, 'Other')], verbose_name='Type'),
        ),
        migrations.AlterField(
            model_name='built',
            name='built_note',
            field=models.TextField(null=True, blank=True, verbose_name='Note'),
        ),
        migrations.AlterField(
            model_name='built',
            name='built_short_desc',
            field=models.CharField(max_length=40, verbose_name='Short description', default='Unknown'),
        ),
        migrations.AlterField(
            model_name='built',
            name='built_type',
            field=models.ForeignKey(to='gissmo.BuiltType', verbose_name='Type'),
        ),
        migrations.AlterField(
            model_name='built',
            name='station',
            field=models.ForeignKey(to='gissmo.StationSite', verbose_name='Site'),
        ),
        migrations.AlterField(
            model_name='builttype',
            name='built_type_name',
            field=models.CharField(max_length=40, verbose_name='Name'),
        ),
        migrations.AlterField(
            model_name='calibrationunit',
            name='description',
            field=models.TextField(null=True, blank=True, verbose_name='Description'),
        ),
        migrations.AlterField(
            model_name='calibrationunit',
            name='name',
            field=models.CharField(max_length=50, verbose_name='Name'),
        ),
        migrations.AlterField(
            model_name='chain',
            name='channel',
            field=models.ForeignKey(to='gissmo.Channel', verbose_name='Channel'),
        ),
        migrations.AlterField(
            model_name='chain',
            name='equip',
            field=models.ForeignKey(to='gissmo.Equipment', verbose_name='Equipment'),
        ),
        migrations.AlterField(
            model_name='chainconfig',
            name='chain',
            field=models.ForeignKey(to='gissmo.Chain', verbose_name='Acquisition chain'),
        ),
        migrations.AlterField(
            model_name='chainconfig',
            name='channel',
            field=models.ForeignKey(to='gissmo.Channel', verbose_name='Channel'),
        ),
        migrations.AlterField(
            model_name='chainconfig',
            name='parameter',
            field=models.ForeignKey(to='gissmo.ParameterEquip', verbose_name='Parameter'),
        ),
        migrations.AlterField(
            model_name='chainconfig',
            name='value',
            field=models.ForeignKey(to='gissmo.ParameterValue', verbose_name='Value'),
        ),
        migrations.AlterField(
            model_name='channel',
            name='alternate_code',
            field=models.CharField(null=True, max_length=5, blank=True, verbose_name='Alternate code'),
        ),
        migrations.AlterField(
            model_name='channel',
            name='azimuth',
            field=models.DecimalField(max_digits=4, verbose_name='Azimut (°)', decimal_places=1),
        ),
        migrations.AlterField(
            model_name='channel',
            name='calibration_units',
            field=models.ForeignKey(null=True, blank=True, to='gissmo.CalibrationUnit', verbose_name='Calibration unit'),
        ),
        migrations.AlterField(
            model_name='channel',
            name='channel_code',
            field=models.ForeignKey(to='gissmo.ChannelCode', verbose_name='Channel code'),
        ),
        migrations.AlterField(
            model_name='channel',
            name='clock_drift',
            field=models.FloatField(null=True, blank=True, verbose_name='Clock drift (seconds/sample)'),
        ),
        migrations.AlterField(
            model_name='channel',
            name='data_type',
            field=models.ManyToManyField(blank=True, verbose_name='Data types', to='gissmo.DataType'),
        ),
        migrations.AlterField(
            model_name='channel',
            name='depth',
            field=models.DecimalField(max_digits=4, verbose_name='Depth (m)', decimal_places=1),
        ),
        migrations.AlterField(
            model_name='channel',
            name='description',
            field=models.TextField(null=True, blank=True, verbose_name='Description'),
        ),
        migrations.AlterField(
            model_name='channel',
            name='dip',
            field=models.DecimalField(max_digits=3, verbose_name='Dip (°)', decimal_places=1),
        ),
        migrations.AlterField(
            model_name='channel',
            name='elevation',
            field=models.DecimalField(max_digits=5, verbose_name='Elevation (m)', decimal_places=1),
        ),
        migrations.AlterField(
            model_name='channel',
            name='end_date',
            field=models.DateTimeField(null=True, blank=True, verbose_name='Ending date (yyyy-mm-dd)'),
        ),
        migrations.AlterField(
            model_name='channel',
            name='historical_code',
            field=models.CharField(null=True, max_length=5, blank=True, verbose_name='Historical code'),
        ),
        migrations.AlterField(
            model_name='channel',
            name='latitude',
            field=models.DecimalField(max_digits=8, verbose_name='Latitude (°)', decimal_places=6),
        ),
        migrations.AlterField(
            model_name='channel',
            name='location_code',
            field=models.CharField(null=True, max_length=2, blank=True, verbose_name='Location code'),
        ),
        migrations.AlterField(
            model_name='channel',
            name='longitude',
            field=models.DecimalField(max_digits=9, verbose_name='Longitude (°)', decimal_places=6),
        ),
        migrations.AlterField(
            model_name='channel',
            name='network',
            field=models.ForeignKey(to='gissmo.Network', verbose_name='Network'),
        ),
        migrations.AlterField(
            model_name='channel',
            name='restricted_status',
            field=models.IntegerField(null=True, choices=[(1, 'Open'), (2, 'Closed'), (3, 'Partial')], blank=True, verbose_name='Restrictive status'),
        ),
        migrations.AlterField(
            model_name='channel',
            name='sample_rate',
            field=models.FloatField(verbose_name='Sample rate (Hz)'),
        ),
        migrations.AlterField(
            model_name='channel',
            name='start_date',
            field=models.DateTimeField(verbose_name='Starting date (yyyy-mm-dd)'),
        ),
        migrations.AlterField(
            model_name='channel',
            name='station',
            field=models.ForeignKey(to='gissmo.StationSite', verbose_name='Station'),
        ),
        migrations.AlterField(
            model_name='channel',
            name='storage_format',
            field=models.CharField(null=True, max_length=50, blank=True, verbose_name='Storage format'),
        ),
        migrations.AlterField(
            model_name='channelcode',
            name='channel_code',
            field=models.CharField(serialize=False, max_length=3, verbose_name='Code', primary_key=True),
        ),
        migrations.AlterField(
            model_name='channelcode',
            name='validation_rule',
            field=models.TextField(null=True, blank=True, verbose_name='Validation rule'),
        ),
        migrations.AlterField(
            model_name='datatype',
            name='type_description',
            field=models.CharField(max_length=50, verbose_name='Type'),
        ),
        migrations.AlterField(
            model_name='equipdoc',
            name='begin_effective',
            field=models.DateField(null=True, blank=True, verbose_name='Start date (yyyy-mm-dd)'),
        ),
        migrations.AlterField(
            model_name='equipdoc',
            name='document_equip',
            field=models.FileField(storage=django.core.files.storage.FileSystemStorage(location='/home/olivier/gissmo/project/gissmo/upload'), blank=True, verbose_name='Document', upload_to=gissmo.models.equipdoc_file_name),
        ),
        migrations.AlterField(
            model_name='equipdoc',
            name='document_title',
            field=models.CharField(max_length=40, verbose_name='Title'),
        ),
        migrations.AlterField(
            model_name='equipdoc',
            name='document_type',
            field=models.ForeignKey(null=True, blank=True, to='gissmo.EquipDocType', verbose_name='Type'),
        ),
        migrations.AlterField(
            model_name='equipdoc',
            name='end_effective',
            field=models.DateField(null=True, blank=True, verbose_name='End date (yyyy-mm-dd)'),
        ),
        migrations.AlterField(
            model_name='equipdoc',
            name='equip',
            field=models.ForeignKey(to='gissmo.Equipment', verbose_name='Equipment'),
        ),
        migrations.AlterField(
            model_name='equipdoc',
            name='inscription_date',
            field=models.DateField(null=True, blank=True, verbose_name='Registration date (yyyy-mm-dd)'),
        ),
        migrations.AlterField(
            model_name='equipdoc',
            name='private_link',
            field=models.URLField(null=True, blank=True, verbose_name='Private document link'),
        ),
        migrations.AlterField(
            model_name='equipdoctype',
            name='equipdoc_type_name',
            field=models.CharField(max_length=40, verbose_name='Type'),
        ),
        migrations.AlterField(
            model_name='equipment',
            name='contact',
            field=models.TextField(null=True, blank=True, verbose_name='Contact'),
        ),
        migrations.AlterField(
            model_name='equipment',
            name='equip_model',
            field=models.ForeignKey(validators=[gissmo.validators.validate_equip_model], to='gissmo.EquipModel', verbose_name='Model'),
        ),
        migrations.AlterField(
            model_name='equipment',
            name='last_state',
            field=models.IntegerField(null=True, choices=[(1, 'Operation in progress'), (2, 'To be tested'), (3, 'Available'), (4, 'Failure'), (5, 'Breakdown'), (6, 'Transit in progress'), (7, 'Out of use'), (8, 'Lost'), (9, 'Waste'), (10, 'Other')], blank=True, verbose_name='Status'),
        ),
        migrations.AlterField(
            model_name='equipment',
            name='last_station',
            field=models.ForeignKey(null=True, blank=True, to='gissmo.StationSite', verbose_name='Last place'),
        ),
        migrations.AlterField(
            model_name='equipment',
            name='note',
            field=models.TextField(null=True, blank=True, verbose_name='Note'),
        ),
        migrations.AlterField(
            model_name='equipment',
            name='owner',
            field=models.ForeignKey(to='gissmo.Actor', verbose_name='Owner'),
        ),
        migrations.AlterField(
            model_name='equipment',
            name='purchase_date',
            field=models.DateField(null=True, blank=True, verbose_name='Purchase date'),
        ),
        migrations.AlterField(
            model_name='equipment',
            name='serial_number',
            field=models.CharField(max_length=50, verbose_name='Serial number'),
        ),
        migrations.AlterField(
            model_name='equipment',
            name='vendor',
            field=models.CharField(null=True, max_length=50, blank=True, verbose_name='Seller'),
        ),
        migrations.AlterField(
            model_name='equipmodel',
            name='equip_model_name',
            field=models.CharField(max_length=50, verbose_name='Model'),
        ),
        migrations.AlterField(
            model_name='equipmodel',
            name='equip_type',
            field=models.ForeignKey(to='gissmo.EquipType', verbose_name='Type'),
        ),
        migrations.AlterField(
            model_name='equipmodel',
            name='is_network_model',
            field=models.BooleanField(default=False, verbose_name='Network configurable?'),
        ),
        migrations.AlterField(
            model_name='equipmodel',
            name='manufacturer',
            field=models.CharField(max_length=50, verbose_name='Manufacturer', default='Unknown'),
        ),
        migrations.AlterField(
            model_name='equipmodeldoc',
            name='begin_effective',
            field=models.DateField(null=True, blank=True, verbose_name='Start date (yyyy-mm-dd)'),
        ),
        migrations.AlterField(
            model_name='equipmodeldoc',
            name='document_equip_model',
            field=models.FileField(storage=django.core.files.storage.FileSystemStorage(location='/home/olivier/gissmo/project/gissmo/upload'), blank=True, verbose_name='Document', upload_to=gissmo.models.equipmodeldoc_file_name),
        ),
        migrations.AlterField(
            model_name='equipmodeldoc',
            name='document_title',
            field=models.CharField(max_length=40, verbose_name='Title'),
        ),
        migrations.AlterField(
            model_name='equipmodeldoc',
            name='document_type',
            field=models.ForeignKey(null=True, blank=True, to='gissmo.EquipModelDocType', verbose_name='Type'),
        ),
        migrations.AlterField(
            model_name='equipmodeldoc',
            name='end_effective',
            field=models.DateField(null=True, blank=True, verbose_name='End date (yyyy-mm-dd)'),
        ),
        migrations.AlterField(
            model_name='equipmodeldoc',
            name='equip_model',
            field=models.ForeignKey(to='gissmo.EquipModel', verbose_name='Equipment model'),
        ),
        migrations.AlterField(
            model_name='equipmodeldoc',
            name='inscription_date',
            field=models.DateField(null=True, blank=True, verbose_name='Registration date (yyyy-mm-dd)'),
        ),
        migrations.AlterField(
            model_name='equipmodeldoc',
            name='private_link',
            field=models.URLField(null=True, blank=True, verbose_name='Private document link'),
        ),
        migrations.AlterField(
            model_name='equipmodeldoctype',
            name='equipmodeldoc_type_name',
            field=models.CharField(max_length=40, verbose_name='Type'),
        ),
        migrations.AlterField(
            model_name='equipsupertype',
            name='equip_supertype_name',
            field=models.CharField(max_length=40, verbose_name='Name'),
        ),
        migrations.AlterField(
            model_name='equiptype',
            name='equip_supertype',
            field=models.ForeignKey(to='gissmo.EquipSupertype', verbose_name='Supertype'),
        ),
        migrations.AlterField(
            model_name='equiptype',
            name='equip_type_name',
            field=models.CharField(max_length=40, verbose_name='Type'),
        ),
        migrations.AlterField(
            model_name='intervactor',
            name='actor',
            field=models.ForeignKey(to='gissmo.Actor', verbose_name='Operator'),
        ),
        migrations.AlterField(
            model_name='intervactor',
            name='intervention',
            field=models.ForeignKey(to='gissmo.Intervention', verbose_name='Intervention'),
        ),
        migrations.AlterField(
            model_name='intervactor',
            name='note',
            field=models.TextField(null=True, blank=True, verbose_name='Note'),
        ),
        migrations.AlterField(
            model_name='intervention',
            name='intervention_date',
            field=models.DateTimeField(verbose_name='Date (yyyy-mm-dd)'),
        ),
        migrations.AlterField(
            model_name='intervention',
            name='note',
            field=models.TextField(null=True, blank=True, verbose_name='Note'),
        ),
        migrations.AlterField(
            model_name='intervention',
            name='station',
            field=models.ForeignKey(to='gissmo.StationSite', verbose_name='Site'),
        ),
        migrations.AlterField(
            model_name='intervequip',
            name='built',
            field=models.ForeignKey(null=True, blank=True, to='gissmo.Built', verbose_name='Place'),
        ),
        migrations.AlterField(
            model_name='intervequip',
            name='equip',
            field=models.ForeignKey(to='gissmo.Equipment', verbose_name='Equipment'),
        ),
        migrations.AlterField(
            model_name='intervequip',
            name='equip_action',
            field=models.IntegerField(choices=[(1, 'Buy'), (2, 'Test'), (3, 'Install'), (4, 'Uninstall'), (5, 'Observe failure'), (6, 'Perform remote preventive maintenance'), (7, 'Perform remote corrective maintenance'), (8, 'Perform preventive maintenance locally'), (9, 'Perform corrective maintenance locally'), (10, 'Send'), (11, 'Receive'), (12, 'Put is as out of use'), (13, 'Observe that equipment is lost'), (14, 'Find it after being lost'), (15, 'Put it as waste'), (16, 'Other')], verbose_name='Action'),
        ),
        migrations.AlterField(
            model_name='intervequip',
            name='equip_state',
            field=models.IntegerField(choices=[(1, 'Operation in progress'), (2, 'To be tested'), (3, 'Available'), (4, 'Failure'), (5, 'Breakdown'), (6, 'Transit in progress'), (7, 'Out of use'), (8, 'Lost'), (9, 'Waste'), (10, 'Other')], verbose_name='Status'),
        ),
        migrations.AlterField(
            model_name='intervequip',
            name='intervention',
            field=models.ForeignKey(to='gissmo.Intervention', verbose_name='Intervention'),
        ),
        migrations.AlterField(
            model_name='intervequip',
            name='note',
            field=models.TextField(null=True, blank=True, verbose_name='Note'),
        ),
        migrations.AlterField(
            model_name='intervequip',
            name='station',
            field=models.ForeignKey(null=True, blank=True, to='gissmo.StationSite', verbose_name='Site'),
        ),
        migrations.AlterField(
            model_name='intervstation',
            name='intervention',
            field=models.ForeignKey(to='gissmo.Intervention', verbose_name='Intervention'),
        ),
        migrations.AlterField(
            model_name='intervstation',
            name='note',
            field=models.TextField(null=True, blank=True, verbose_name='Note'),
        ),
        migrations.AlterField(
            model_name='intervstation',
            name='station_action',
            field=models.IntegerField(choices=[(1, 'Create station code'), (2, 'Install station'), (11, 'Start test'), (12, 'Finish test'), (3, 'Run'), (4, 'Observe failure'), (5, 'Perform REMOTE PREVentive maintenance'), (6, 'Perform REMOTE CORrective maintenance'), (7, 'Perform LOCAL PREVentive maintenance'), (8, 'Perform LOCAL CORrective maintenance'), (9, 'Shut down'), (10, 'Other')], verbose_name='Action'),
        ),
        migrations.AlterField(
            model_name='intervstation',
            name='station_state',
            field=models.IntegerField(null=True, choices=[(1, 'Installing'), (7, 'Testing'), (2, 'Running'), (3, 'Broken'), (4, 'Failure'), (5, 'Closed'), (6, 'Other')], blank=True, verbose_name='Status'),
        ),
        migrations.AlterField(
            model_name='network',
            name='alternate_code',
            field=models.CharField(null=True, max_length=5, blank=True, verbose_name='Alternate code'),
        ),
        migrations.AlterField(
            model_name='network',
            name='description',
            field=models.TextField(null=True, blank=True, verbose_name='Description'),
        ),
        migrations.AlterField(
            model_name='network',
            name='end_date',
            field=models.DateTimeField(null=True, blank=True, verbose_name='Ending date (yyyy-mm-dd)'),
        ),
        migrations.AlterField(
            model_name='network',
            name='historical_code',
            field=models.CharField(null=True, max_length=5, blank=True, verbose_name='Historical code'),
        ),
        migrations.AlterField(
            model_name='network',
            name='network_code',
            field=models.CharField(max_length=5, verbose_name='Code'),
        ),
        migrations.AlterField(
            model_name='network',
            name='network_name',
            field=models.CharField(null=True, max_length=50, blank=True, verbose_name='Name'),
        ),
        migrations.AlterField(
            model_name='network',
            name='restricted_status',
            field=models.IntegerField(null=True, choices=[(1, 'Open'), (2, 'Closed'), (3, 'Partial')], blank=True, verbose_name='Restricted status'),
        ),
        migrations.AlterField(
            model_name='network',
            name='start_date',
            field=models.DateTimeField(null=True, blank=True, verbose_name='Starting date (yyyy-mm-dd)'),
        ),
        migrations.AlterField(
            model_name='parameterequip',
            name='equip_model',
            field=models.ForeignKey(to='gissmo.EquipModel', verbose_name='Equipment model'),
        ),
        migrations.AlterField(
            model_name='parameterequip',
            name='parameter_name',
            field=models.CharField(max_length=50, verbose_name='Name'),
        ),
        migrations.AlterField(
            model_name='parametervalue',
            name='default_value',
            field=models.BooleanField(default=None, verbose_name='Default value'),
        ),
        migrations.AlterField(
            model_name='parametervalue',
            name='parameter',
            field=models.ForeignKey(to='gissmo.ParameterEquip', verbose_name='Parameter'),
        ),
        migrations.AlterField(
            model_name='parametervalue',
            name='value',
            field=models.CharField(max_length=50, verbose_name='Value'),
        ),
        migrations.AlterField(
            model_name='project',
            name='project_name',
            field=models.CharField(max_length=50, verbose_name='Name'),
        ),
        migrations.AlterField(
            model_name='project',
            name='station',
            field=models.ManyToManyField(blank=True, verbose_name='Site', to='gissmo.StationSite'),
        ),
        migrations.AlterField(
            model_name='stationdoc',
            name='begin_effective',
            field=models.DateField(null=True, blank=True, verbose_name='Start date (yyyy-mm-dd)'),
        ),
        migrations.AlterField(
            model_name='stationdoc',
            name='document_station',
            field=models.FileField(storage=django.core.files.storage.FileSystemStorage(location='/home/olivier/gissmo/project/gissmo/upload'), blank=True, verbose_name='Document', upload_to=gissmo.models.stationdoc_file_name),
        ),
        migrations.AlterField(
            model_name='stationdoc',
            name='document_title',
            field=models.CharField(max_length=40, verbose_name='Title'),
        ),
        migrations.AlterField(
            model_name='stationdoc',
            name='document_type',
            field=models.ForeignKey(null=True, blank=True, to='gissmo.StationDocType', verbose_name='Type'),
        ),
        migrations.AlterField(
            model_name='stationdoc',
            name='end_effective',
            field=models.DateField(null=True, blank=True, verbose_name='End date (yyyy-mm-dd)'),
        ),
        migrations.AlterField(
            model_name='stationdoc',
            name='inscription_date',
            field=models.DateField(null=True, blank=True, verbose_name='Registration date (yyyy-mm-dd)'),
        ),
        migrations.AlterField(
            model_name='stationdoc',
            name='private_link',
            field=models.URLField(null=True, blank=True, verbose_name='Private document link'),
        ),
        migrations.AlterField(
            model_name='stationdoc',
            name='station',
            field=models.ForeignKey(to='gissmo.StationSite', verbose_name='Site'),
        ),
        migrations.AlterField(
            model_name='stationdoctype',
            name='stationdoc_type_name',
            field=models.CharField(max_length=40, verbose_name='Type'),
        ),
        migrations.AlterField(
            model_name='stationsite',
            name='address',
            field=models.CharField(null=True, max_length=100, blank=True, verbose_name='Address'),
        ),
        migrations.AlterField(
            model_name='stationsite',
            name='alternate_code',
            field=models.CharField(null=True, max_length=5, blank=True, verbose_name='Alternate code'),
        ),
        migrations.AlterField(
            model_name='stationsite',
            name='contact',
            field=models.TextField(null=True, blank=True, verbose_name='Contact'),
        ),
        migrations.AlterField(
            model_name='stationsite',
            name='country',
            field=models.CharField(null=True, max_length=50, blank=True, verbose_name='Country'),
        ),
        migrations.AlterField(
            model_name='stationsite',
            name='county',
            field=models.CharField(null=True, max_length=100, blank=True, verbose_name='District'),
        ),
        migrations.AlterField(
            model_name='stationsite',
            name='creation_date',
            field=models.DateField(null=True, blank=True, verbose_name='Creation date'),
        ),
        migrations.AlterField(
            model_name='stationsite',
            name='elevation',
            field=models.DecimalField(null=True, blank=True, verbose_name='Elevation (m)', decimal_places=1, max_digits=5),
        ),
        migrations.AlterField(
            model_name='stationsite',
            name='geology',
            field=models.CharField(null=True, max_length=50, blank=True, verbose_name='Geological formation'),
        ),
        migrations.AlterField(
            model_name='stationsite',
            name='historical_code',
            field=models.CharField(null=True, max_length=5, blank=True, verbose_name='Historical code'),
        ),
        migrations.AlterField(
            model_name='stationsite',
            name='last_state',
            field=models.IntegerField(null=True, choices=[(1, 'Installing'), (7, 'Testing'), (2, 'Running'), (3, 'Broken'), (4, 'Failure'), (5, 'Closed'), (6, 'Other')], blank=True, verbose_name='Status'),
        ),
        migrations.AlterField(
            model_name='stationsite',
            name='latitude',
            field=models.DecimalField(null=True, blank=True, verbose_name='Latitude (°)', decimal_places=6, max_digits=8),
        ),
        migrations.AlterField(
            model_name='stationsite',
            name='longitude',
            field=models.DecimalField(null=True, blank=True, verbose_name='Longitude (°)', decimal_places=6, max_digits=9),
        ),
        migrations.AlterField(
            model_name='stationsite',
            name='note',
            field=models.TextField(null=True, blank=True, verbose_name='Note'),
        ),
        migrations.AlterField(
            model_name='stationsite',
            name='operator',
            field=models.ForeignKey(to='gissmo.Actor', verbose_name='Operator'),
        ),
        migrations.AlterField(
            model_name='stationsite',
            name='private_link',
            field=models.URLField(null=True, blank=True, verbose_name='External link'),
        ),
        migrations.AlterField(
            model_name='stationsite',
            name='region',
            field=models.CharField(null=True, max_length=100, blank=True, verbose_name='Region'),
        ),
        migrations.AlterField(
            model_name='stationsite',
            name='restricted_status',
            field=models.IntegerField(null=True, choices=[(1, 'Open'), (2, 'Closed'), (3, 'Partial')], blank=True, verbose_name='Restrictive status'),
        ),
        migrations.AlterField(
            model_name='stationsite',
            name='site_description',
            field=models.TextField(null=True, blank=True, verbose_name='Site description'),
        ),
        migrations.AlterField(
            model_name='stationsite',
            name='site_name',
            field=models.CharField(null=True, max_length=50, blank=True, verbose_name='Name'),
        ),
        migrations.AlterField(
            model_name='stationsite',
            name='site_type',
            field=models.IntegerField(default=1, choices=[(1, 'Measuring site'), (6, 'Potential site'), (7, 'Theoretical site'), (2, 'Agency'), (3, 'Customer service place'), (4, 'Undefined'), (5, 'Other')], verbose_name='Type'),
        ),
        migrations.AlterField(
            model_name='stationsite',
            name='station_code',
            field=models.CharField(unique=True, max_length=40, verbose_name='Code'),
        ),
        migrations.AlterField(
            model_name='stationsite',
            name='station_description',
            field=models.TextField(null=True, blank=True, verbose_name='Station description'),
        ),
        migrations.AlterField(
            model_name='stationsite',
            name='station_parent',
            field=models.ForeignKey(null=True, blank=True, to='gissmo.StationSite', verbose_name='Linked site (referent)'),
        ),
        migrations.AlterField(
            model_name='stationsite',
            name='town',
            field=models.CharField(null=True, max_length=100, blank=True, verbose_name='City'),
        ),
        migrations.AlterField(
            model_name='stationsite',
            name='zip_code',
            field=models.CharField(null=True, max_length=15, blank=True, verbose_name='Zip code'),
        ),
    ]
Exemple #23
0
class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('settings', '0003_auto_20200501_0313'),
        ('borrowers', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='ContactPerson',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('firstname', models.CharField(blank=True, max_length=255, null=True)),
                ('middlename', models.CharField(blank=True, max_length=255, null=True)),
                ('lastname', models.CharField(blank=True, max_length=255, null=True)),
                ('telNo', models.CharField(blank=True, max_length=255, null=True)),
                ('emailAddress', models.CharField(blank=True, max_length=255, null=True)),
                ('phoneNo', models.CharField(blank=True, max_length=255, null=True)),
                ('dateCreated', models.DateTimeField(auto_now_add=True)),
                ('dateUpdated', models.DateTimeField(auto_now_add=True)),
                ('isDeleted', models.BooleanField(default=False)),
                ('createdBy', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='contactPersonCreatedBy', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Cooperative',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('icRiskRating', models.CharField(blank=True, max_length=255, null=True)),
                ('tin', models.CharField(blank=True, max_length=255, null=True)),
                ('cdaRegistrateionDate', models.DateTimeField(default=datetime.date.today)),
                ('initialMembershipSize', models.IntegerField()),
                ('membershipSize', models.IntegerField()),
                ('paidUpCapitalInitial', models.DecimalField(blank=True, decimal_places=2, default=0, max_digits=20, max_length=256, null=True)),
                ('noOfCooperators', models.IntegerField()),
                ('coconutFarmers', models.IntegerField()),
                ('authorized', models.DecimalField(blank=True, decimal_places=2, default=0, max_digits=20, max_length=256, null=True)),
                ('fullyPaidSharesNo', models.IntegerField()),
                ('bookValue', models.IntegerField()),
                ('parValue', models.DecimalField(blank=True, decimal_places=2, default=0, max_digits=20, max_length=256, null=True)),
                ('paidUp', models.DecimalField(blank=True, decimal_places=2, default=0, max_digits=20, max_length=256, null=True)),
                ('fullyPaidPercent', models.IntegerField()),
                ('initialPaidUpShare', models.IntegerField()),
                ('address', models.TextField(blank=True, null=True)),
                ('telNo', models.CharField(blank=True, max_length=255, null=True)),
                ('emailAddress', models.CharField(blank=True, max_length=255, null=True)),
                ('phoneNo', models.CharField(blank=True, max_length=255, null=True)),
                ('fax', models.CharField(blank=True, max_length=255, null=True)),
                ('description', models.TextField(blank=True, null=True)),
                ('remarks', models.TextField(blank=True, null=True)),
                ('dateCreated', models.DateTimeField(auto_now_add=True)),
                ('dateUpdated', models.DateTimeField(auto_now_add=True)),
                ('isDeleted', models.BooleanField(default=False)),
                ('cooperativeType', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='cooperativeCooperativeType', to='settings.CooperativeType')),
                ('createdBy', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='cooperativeCreatedBy', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Director',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('position', models.CharField(max_length=255)),
                ('educationalAttainment', models.CharField(max_length=255)),
                ('age', models.IntegerField()),
                ('yearsInCooop', models.IntegerField()),
                ('oSLoanWithCoop', models.DecimalField(blank=True, decimal_places=2, default=0, max_digits=20, max_length=256, null=True)),
                ('status', models.CharField(blank=True, max_length=255, null=True)),
                ('dateCreated', models.DateTimeField(auto_now_add=True)),
                ('dateUpdated', models.DateTimeField(auto_now_add=True)),
                ('isDeleted', models.BooleanField(default=False)),
                ('cooperative', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='directors', to='borrowers.Cooperative')),
                ('createdBy', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='directorCreatedBy', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Grant',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('donor', models.CharField(max_length=255)),
                ('projectType', models.CharField(max_length=255)),
                ('amount', models.DecimalField(blank=True, decimal_places=2, default=0, max_digits=20, max_length=256, null=True)),
                ('projectStatus', models.CharField(blank=True, max_length=255, null=True)),
                ('dateCreated', models.DateTimeField(auto_now_add=True)),
                ('dateUpdated', models.DateTimeField(auto_now_add=True)),
                ('isDeleted', models.BooleanField(default=False)),
                ('cooperative', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='grants', to='borrowers.Cooperative')),
                ('createdBy', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='grantCreatedBy', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='StandingCommittee',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=255)),
                ('department', models.CharField(max_length=255)),
                ('position', models.CharField(max_length=255)),
                ('educationalAttainment', models.CharField(max_length=255)),
                ('age', models.IntegerField()),
                ('yearsInCooop', models.IntegerField()),
                ('oSLoanWithCoop', models.DecimalField(blank=True, decimal_places=2, default=0, max_digits=20, max_length=256, null=True)),
                ('status', models.CharField(blank=True, max_length=255, null=True)),
                ('dateCreated', models.DateTimeField(auto_now_add=True)),
                ('dateUpdated', models.DateTimeField(auto_now_add=True)),
                ('isDeleted', models.BooleanField(default=False)),
                ('cooperative', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='standingCommittees', to='borrowers.Cooperative')),
                ('createdBy', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='standingCommitteeCreatedBy', to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.RemoveField(
            model_name='personalinfo',
            name='borrower',
        ),
        migrations.RemoveField(
            model_name='personalinfo',
            name='gender',
        ),
        migrations.RemoveField(
            model_name='borrower',
            name='description',
        ),
        migrations.RemoveField(
            model_name='borrower',
            name='firstname',
        ),
        migrations.RemoveField(
            model_name='borrower',
            name='lastname',
        ),
        migrations.RemoveField(
            model_name='borrower',
            name='middlename',
        ),
        migrations.AddField(
            model_name='borrower',
            name='clientSince',
            field=models.DateTimeField(null=True),
        ),
        migrations.AddField(
            model_name='borrower',
            name='dateUpdated',
            field=models.DateTimeField(auto_now_add=True, default=django.utils.timezone.now),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='borrower',
            name='createdBy',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='borrowerCreatedBy', to=settings.AUTH_USER_MODEL),
        ),
        migrations.DeleteModel(
            name='PersonalInfo',
        ),
        migrations.AddField(
            model_name='borrower',
            name='contactPerson',
            field=models.OneToOneField(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='borrowerContactPerson', to='borrowers.ContactPerson'),
        ),
        migrations.AddField(
            model_name='borrower',
            name='cooperative',
            field=models.OneToOneField(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='borrowerCooperative', to='borrowers.Cooperative'),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('djangotest', '0016_auto_20180425_1707'),
    ]

    operations = [
        migrations.CreateModel(
            name='Image',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('image',
                 cloudinary.models.CloudinaryField(max_length=255,
                                                   verbose_name='image')),
            ],
        ),
        migrations.RemoveField(
            model_name='room',
            name='image1',
        ),
        migrations.RemoveField(
            model_name='room',
            name='image2',
        ),
        migrations.RemoveField(
            model_name='room',
            name='image3',
        ),
        migrations.RemoveField(
            model_name='room',
            name='image4',
        ),
        migrations.RemoveField(
            model_name='room',
            name='price',
        ),
        migrations.AddField(
            model_name='room',
            name='description',
            field=models.CharField(default=None, max_length=200),
        ),
        migrations.AddField(
            model_name='roomtype',
            name='price',
            field=models.PositiveIntegerField(
                default=None,
                validators=[django.core.validators.MinValueValidator(1)]),
        ),
        migrations.AlterField(
            model_name='room',
            name='type',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='djangotest.RoomType',
                verbose_name='Room Type'),
        ),
        migrations.AddField(
            model_name='image',
            name='roomType',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='djangotest.RoomType',
                verbose_name='Room Type'),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('pages', '0007_auto_20160403_1851'),
    ]

    operations = [
        migrations.AlterField(
            model_name='standardpage',
            name='body',
            field=wagtail.wagtailcore.fields.StreamField([
                (b'HTML',
                 wagtail.wagtailcore.blocks.StructBlock([
                     (b'html_content',
                      wagtail.wagtailcore.blocks.TextBlock(required=False))
                 ])),
                (b'WYSIWYG',
                 wagtail.wagtailcore.blocks.StructBlock([
                     (b'wysiwyg_content',
                      wagtail.wagtailcore.blocks.RichTextBlock(
                          required=False)),
                     (b'horizontal_alignment',
                      wagtail.wagtailcore.blocks.ChoiceBlock(
                          choices=[(b'left',
                                    b'Left'), (b'right',
                                               b'Right'), (b'center',
                                                           b'Center')]))
                 ])),
                (b'Row',
                 wagtail.wagtailcore.blocks.StructBlock([
                     (b'background_image',
                      wagtail.wagtailimages.blocks.ImageChooserBlock(
                          required=False)),
                     (b'background_color',
                      wagtail.wagtailcore.blocks.TextBlock(required=False)),
                     (b'padding',
                      wagtail.wagtailcore.blocks.TextBlock(required=False)),
                     (b'max_width',
                      wagtail.wagtailcore.blocks.TextBlock(required=False)),
                     (b'vertical_alignment',
                      wagtail.wagtailcore.blocks.ChoiceBlock(
                          choices=[(b'top', b'Top'), (b'bottom', b'Bottom'),
                                   (b'middle',
                                    b'Middle'), (b'baseline', b'Baseline')])),
                     (b'content',
                      wagtail.wagtailcore.blocks.StreamBlock([
                          (b'HTML',
                           wagtail.wagtailcore.blocks.StructBlock([
                               (b'html_content',
                                wagtail.wagtailcore.blocks.TextBlock(
                                    required=False))
                           ])),
                          (b'WYSIWYG',
                           wagtail.wagtailcore.blocks.StructBlock([
                               (b'wysiwyg_content',
                                wagtail.wagtailcore.blocks.RichTextBlock(
                                    required=False)),
                               (b'horizontal_alignment',
                                wagtail.wagtailcore.blocks.ChoiceBlock(
                                    choices=[(b'left',
                                              b'Left'), (b'right', b'Right'),
                                             (b'center', b'Center')]))
                           ])),
                          (b'Column',
                           wagtail.wagtailcore.blocks.StructBlock([
                               (b'background_image',
                                wagtail.wagtailimages.blocks.ImageChooserBlock(
                                    required=False)),
                               (b'background_color',
                                wagtail.wagtailcore.blocks.TextBlock(
                                    required=False)),
                               (b'padding',
                                wagtail.wagtailcore.blocks.TextBlock(
                                    required=False)),
                               (b'max_width',
                                wagtail.wagtailcore.blocks.TextBlock(
                                    required=False)),
                               (b'content',
                                wagtail.wagtailcore.blocks.StreamBlock([
                                    (b'HTML',
                                     wagtail.wagtailcore.blocks.StructBlock([
                                         (b'html_content',
                                          wagtail.wagtailcore.blocks.TextBlock(
                                              required=False))
                                     ])),
                                    (b'WYSIWYG',
                                     wagtail.wagtailcore.blocks.StructBlock([
                                         (b'wysiwyg_content',
                                          wagtail.wagtailcore.blocks.
                                          RichTextBlock(required=False)),
                                         (b'horizontal_alignment',
                                          wagtail.wagtailcore.blocks.
                                          ChoiceBlock(choices=[(
                                              b'left', b'Left'
                                          ), (b'right',
                                              b'Right'), (b'center',
                                                          b'Center')]))
                                     ]))
                                ]))
                           ]))
                      ]))
                 ])),
                (b'Hero',
                 wagtail.wagtailcore.blocks.StructBlock([
                     (b'hero_image',
                      wagtail.wagtailimages.blocks.ImageChooserBlock(
                          required=False)),
                     (b'background_color',
                      wagtail.wagtailcore.blocks.TextBlock(required=False)),
                     (b'padding',
                      wagtail.wagtailcore.blocks.TextBlock(required=False)),
                     (b'logo',
                      wagtail.wagtailcore.blocks.ChoiceBlock(
                          choices=[(b'hide', b'Hide'), (
                              b'show', b'Show'), (b'animate', b'Animate')])),
                     (b'hero_content',
                      wagtail.wagtailcore.blocks.StreamBlock([
                          (b'HTML',
                           wagtail.wagtailcore.blocks.StructBlock([
                               (b'html_content',
                                wagtail.wagtailcore.blocks.TextBlock(
                                    required=False))
                           ])),
                          (b'WYSIWYG',
                           wagtail.wagtailcore.blocks.StructBlock([
                               (b'wysiwyg_content',
                                wagtail.wagtailcore.blocks.RichTextBlock(
                                    required=False)),
                               (b'horizontal_alignment',
                                wagtail.wagtailcore.blocks.ChoiceBlock(
                                    choices=[(b'left',
                                              b'Left'), (b'right', b'Right'),
                                             (b'center', b'Center')]))
                           ])),
                          (b'Row',
                           wagtail.wagtailcore.blocks.StructBlock([
                               (b'background_image',
                                wagtail.wagtailimages.blocks.ImageChooserBlock(
                                    required=False)),
                               (b'background_color',
                                wagtail.wagtailcore.blocks.TextBlock(
                                    required=False)),
                               (b'padding',
                                wagtail.wagtailcore.blocks.TextBlock(
                                    required=False)),
                               (b'max_width',
                                wagtail.wagtailcore.blocks.TextBlock(
                                    required=False)),
                               (b'vertical_alignment',
                                wagtail.wagtailcore.blocks.ChoiceBlock(
                                    choices=[(b'top',
                                              b'Top'), (b'bottom', b'Bottom'),
                                             (b'middle', b'Middle'
                                              ), (b'baseline', b'Baseline')])),
                               (b'content',
                                wagtail.wagtailcore.blocks.StreamBlock([
                                    (b'HTML',
                                     wagtail.wagtailcore.blocks.StructBlock([
                                         (b'html_content',
                                          wagtail.wagtailcore.blocks.TextBlock(
                                              required=False))
                                     ])),
                                    (b'WYSIWYG',
                                     wagtail.wagtailcore.blocks.StructBlock([
                                         (b'wysiwyg_content',
                                          wagtail.wagtailcore.blocks.
                                          RichTextBlock(required=False)),
                                         (b'horizontal_alignment',
                                          wagtail.wagtailcore.blocks.
                                          ChoiceBlock(choices=[(
                                              b'left', b'Left'
                                          ), (b'right',
                                              b'Right'), (b'center',
                                                          b'Center')]))
                                     ])),
                                    (b'Column',
                                     wagtail.wagtailcore.blocks.StructBlock([
                                         (b'background_image',
                                          wagtail.wagtailimages.blocks.
                                          ImageChooserBlock(required=False)),
                                         (b'background_color',
                                          wagtail.wagtailcore.blocks.TextBlock(
                                              required=False)),
                                         (b'padding',
                                          wagtail.wagtailcore.blocks.TextBlock(
                                              required=False)),
                                         (b'max_width',
                                          wagtail.wagtailcore.blocks.TextBlock(
                                              required=False)),
                                         (b'content',
                                          wagtail.wagtailcore.blocks.
                                          StreamBlock([
                                              (b'HTML',
                                               wagtail.wagtailcore.blocks.
                                               StructBlock([
                                                   (b'html_content',
                                                    wagtail.wagtailcore.blocks.
                                                    TextBlock(required=False))
                                               ])),
                                              (b'WYSIWYG',
                                               wagtail.wagtailcore.blocks.
                                               StructBlock([
                                                   (b'wysiwyg_content',
                                                    wagtail.wagtailcore.blocks.
                                                    RichTextBlock(
                                                        required=False)),
                                                   (b'horizontal_alignment',
                                                    wagtail.wagtailcore.blocks.
                                                    ChoiceBlock(
                                                        choices=[(
                                                            b'left', b'Left'
                                                        ), (b'right',
                                                            b'Right'),
                                                                 (b'center',
                                                                  b'Center')]))
                                               ]))
                                          ]))
                                     ]))
                                ]))
                           ]))
                      ]))
                 ])),
                (b'Hero_CTA',
                 wagtail.wagtailcore.blocks.StructBlock([
                     (b'background_color',
                      wagtail.wagtailcore.blocks.TextBlock(required=False)),
                     (b'pull_up',
                      wagtail.wagtailcore.blocks.TextBlock(required=False)),
                     (b'cta_content',
                      wagtail.wagtailcore.blocks.StreamBlock([
                          (b'HTML',
                           wagtail.wagtailcore.blocks.StructBlock([
                               (b'html_content',
                                wagtail.wagtailcore.blocks.TextBlock(
                                    required=False))
                           ])),
                          (b'WYSIWYG',
                           wagtail.wagtailcore.blocks.StructBlock([
                               (b'wysiwyg_content',
                                wagtail.wagtailcore.blocks.RichTextBlock(
                                    required=False)),
                               (b'horizontal_alignment',
                                wagtail.wagtailcore.blocks.ChoiceBlock(
                                    choices=[(b'left',
                                              b'Left'), (b'right', b'Right'),
                                             (b'center', b'Center')]))
                           ])),
                          (b'Row',
                           wagtail.wagtailcore.blocks.StructBlock([
                               (b'background_image',
                                wagtail.wagtailimages.blocks.ImageChooserBlock(
                                    required=False)),
                               (b'background_color',
                                wagtail.wagtailcore.blocks.TextBlock(
                                    required=False)),
                               (b'padding',
                                wagtail.wagtailcore.blocks.TextBlock(
                                    required=False)),
                               (b'max_width',
                                wagtail.wagtailcore.blocks.TextBlock(
                                    required=False)),
                               (b'vertical_alignment',
                                wagtail.wagtailcore.blocks.ChoiceBlock(
                                    choices=[(b'top',
                                              b'Top'), (b'bottom', b'Bottom'),
                                             (b'middle', b'Middle'
                                              ), (b'baseline', b'Baseline')])),
                               (b'content',
                                wagtail.wagtailcore.blocks.StreamBlock([
                                    (b'HTML',
                                     wagtail.wagtailcore.blocks.StructBlock([
                                         (b'html_content',
                                          wagtail.wagtailcore.blocks.TextBlock(
                                              required=False))
                                     ])),
                                    (b'WYSIWYG',
                                     wagtail.wagtailcore.blocks.StructBlock([
                                         (b'wysiwyg_content',
                                          wagtail.wagtailcore.blocks.
                                          RichTextBlock(required=False)),
                                         (b'horizontal_alignment',
                                          wagtail.wagtailcore.blocks.
                                          ChoiceBlock(choices=[(
                                              b'left', b'Left'
                                          ), (b'right',
                                              b'Right'), (b'center',
                                                          b'Center')]))
                                     ])),
                                    (b'Column',
                                     wagtail.wagtailcore.blocks.StructBlock([
                                         (b'background_image',
                                          wagtail.wagtailimages.blocks.
                                          ImageChooserBlock(required=False)),
                                         (b'background_color',
                                          wagtail.wagtailcore.blocks.TextBlock(
                                              required=False)),
                                         (b'padding',
                                          wagtail.wagtailcore.blocks.TextBlock(
                                              required=False)),
                                         (b'max_width',
                                          wagtail.wagtailcore.blocks.TextBlock(
                                              required=False)),
                                         (b'content',
                                          wagtail.wagtailcore.blocks.
                                          StreamBlock([
                                              (b'HTML',
                                               wagtail.wagtailcore.blocks.
                                               StructBlock([
                                                   (b'html_content',
                                                    wagtail.wagtailcore.blocks.
                                                    TextBlock(required=False))
                                               ])),
                                              (b'WYSIWYG',
                                               wagtail.wagtailcore.blocks.
                                               StructBlock([
                                                   (b'wysiwyg_content',
                                                    wagtail.wagtailcore.blocks.
                                                    RichTextBlock(
                                                        required=False)),
                                                   (b'horizontal_alignment',
                                                    wagtail.wagtailcore.blocks.
                                                    ChoiceBlock(
                                                        choices=[(
                                                            b'left', b'Left'
                                                        ), (b'right',
                                                            b'Right'),
                                                                 (b'center',
                                                                  b'Center')]))
                                               ]))
                                          ]))
                                     ]))
                                ]))
                           ]))
                      ]))
                 ]))
            ],
                                                         blank=True,
                                                         null=True),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('feedback', '0003_auto_20180901_2100'),
    ]

    operations = [
        migrations.CreateModel(
            name='teacher',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('teacher_name', models.CharField(max_length=30, null=True)),
                ('techer_dept', models.CharField(max_length=20, null=True)),
            ],
        ),
        migrations.DeleteModel(
            name='student',
        ),
        migrations.RemoveField(
            model_name='ratings',
            name='roll_no',
        ),
        migrations.AddField(
            model_name='ratings',
            name='Name',
            field=models.CharField(default='Rajat', max_length=20, primary_key=True, serialize=False),
        ),
        migrations.AddField(
            model_name='ratings',
            name='subject6_rating',
            field=models.IntegerField(default=0),
        ),
        migrations.AddField(
            model_name='ratings',
            name='subject_name6',
            field=models.CharField(max_length=50, null=True),
        ),
        migrations.AddField(
            model_name='ratings',
            name='teacher_name1',
            field=models.CharField(max_length=50, null=True),
        ),
        migrations.AddField(
            model_name='ratings',
            name='teacher_name2',
            field=models.CharField(max_length=50, null=True),
        ),
        migrations.AddField(
            model_name='ratings',
            name='teacher_name3',
            field=models.CharField(max_length=50, null=True),
        ),
        migrations.AddField(
            model_name='ratings',
            name='teacher_name4',
            field=models.CharField(max_length=50, null=True),
        ),
        migrations.AddField(
            model_name='ratings',
            name='teacher_name5',
            field=models.CharField(max_length=50, null=True),
        ),
        migrations.AddField(
            model_name='ratings',
            name='teacher_name6',
            field=models.CharField(max_length=50, null=True),
        ),
        migrations.AlterField(
            model_name='ratings',
            name='branch',
            field=models.CharField(choices=[('CS', 'Computer Science'), ('IT', 'Information Technology'), ('EC', 'Electrical and Communication'), ('EE', 'Electrical Engineering'), ('ME', 'Mechanical Engineering'), ('CE', 'Civil Engineering')], default='Computer Science', max_length=80),
        ),
        migrations.AlterField(
            model_name='ratings',
            name='section',
            field=models.CharField(default='S', max_length=10),
        ),
        migrations.AlterField(
            model_name='ratings',
            name='subject_name1',
            field=models.CharField(max_length=50, null=True),
        ),
        migrations.AlterField(
            model_name='ratings',
            name='subject_name2',
            field=models.CharField(max_length=50, null=True),
        ),
        migrations.AlterField(
            model_name='ratings',
            name='subject_name3',
            field=models.CharField(max_length=50, null=True),
        ),
        migrations.AlterField(
            model_name='ratings',
            name='subject_name4',
            field=models.CharField(max_length=50, null=True),
        ),
        migrations.AlterField(
            model_name='ratings',
            name='subject_name5',
            field=models.CharField(max_length=50, null=True),
        ),
    ]
Exemple #27
0
class Migration(migrations.Migration):

    replaces = [(b'market', '0001_initial'), (b'market', '0002_auto_20160321_1349'), (b'market', '0003_auto_20160321_1421'), (b'market', '0004_auto_20160321_1432'), (b'market', '0005_auto_20160321_1435'), (b'market', '0006_auto_20160321_1436'), (b'market', '0007_auto_20160321_1445'), (b'market', '0008_auto_20160321_1453'), (b'market', '0009_cartitem'), (b'market', '0010_auto_20160329_1721')]

    initial = True

    dependencies = [
        ('crest_app', '0001_squashed_0006_auto_20160317_1351'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='InvType',
            fields=[
                ('typeID', models.BigIntegerField(primary_key=True, serialize=False)),
                ('typeName', models.CharField(max_length=128)),
                ('description', models.TextField()),
                ('mass', models.FloatField()),
                ('volume', models.FloatField()),
                ('capacity', models.FloatField()),
                ('portionSize', models.FloatField()),
                ('raceID', models.IntegerField()),
                ('basePrice', models.FloatField()),
                ('published', models.SmallIntegerField(verbose_name='Whether or not this item has been published')),
                ('iconID', models.FloatField()),
                ('soundID', models.IntegerField()),
                ('graphicID', models.IntegerField()),
            ],
        ),
        migrations.CreateModel(
            name='ItemGroup',
            fields=[
                ('groupID', models.IntegerField(primary_key=True, serialize=False)),
                ('categoryID', models.IntegerField()),
                ('groupName', models.CharField(max_length=128)),
                ('iconID', models.IntegerField()),
                ('useBasePrice', models.SmallIntegerField()),
                ('anchored', models.SmallIntegerField()),
                ('anchorable', models.SmallIntegerField()),
                ('fittableNonSingleton', models.SmallIntegerField()),
                ('published', models.SmallIntegerField()),
            ],
        ),
        migrations.CreateModel(
            name='ItemMarketGroup',
            fields=[
                ('marketGroupID', models.IntegerField(primary_key=True, serialize=False)),
                ('parentGroupID', models.IntegerField()),
                ('marketGroupName', models.CharField(max_length=128)),
                ('description', models.TextField()),
                ('iconID', models.IntegerField()),
                ('hasTypes', models.SmallIntegerField()),
            ],
        ),
        migrations.AddField(
            model_name='invtype',
            name='itemgroup',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='market.ItemGroup', verbose_name='The related Item Group (groupID)'),
        ),
        migrations.AddField(
            model_name='invtype',
            name='itemmarketgroup',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='market.ItemMarketGroup', verbose_name='The related market Group (marketGroupID)'),
        ),
        migrations.AlterModelOptions(
            name='invtype',
            options={'verbose_name': 'Item Type', 'verbose_name_plural': 'Item Types'},
        ),
        migrations.AlterModelOptions(
            name='itemgroup',
            options={'verbose_name': 'Item Group', 'verbose_name_plural': 'Item Groups'},
        ),
        migrations.AlterModelOptions(
            name='itemmarketgroup',
            options={'verbose_name': 'Market Group', 'verbose_name_plural': 'Market Groups'},
        ),
        migrations.AlterField(
            model_name='itemmarketgroup',
            name='parentGroupID',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='market.ItemMarketGroup', verbose_name='The parent market group'),
        ),
        migrations.AlterField(
            model_name='invtype',
            name='itemgroup',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='market.ItemGroup', verbose_name='Related Item Group (groupID)'),
        ),
        migrations.AlterField(
            model_name='invtype',
            name='itemmarketgroup',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='market.ItemMarketGroup', verbose_name='Related market Group (marketGroupID)'),
        ),
        migrations.AlterField(
            model_name='itemmarketgroup',
            name='parentGroupID',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='market.ItemMarketGroup', verbose_name='Parent market group'),
        ),
        migrations.AlterField(
            model_name='itemmarketgroup',
            name='parentGroupID',
            field=models.ForeignKey(blank=True, db_constraint=False, null=True, on_delete=django.db.models.deletion.CASCADE, to='market.ItemMarketGroup', verbose_name='Parent market group'),
        ),
        migrations.AlterField(
            model_name='itemmarketgroup',
            name='parentGroupID',
            field=models.IntegerField(verbose_name='Parent market group id'),
        ),
        migrations.AlterField(
            model_name='itemmarketgroup',
            name='parentGroupID',
            field=models.IntegerField(blank=True, null=True, verbose_name='Parent market group id'),
        ),
        migrations.AlterField(
            model_name='invtype',
            name='graphicID',
            field=models.IntegerField(null=True),
        ),
        migrations.AlterField(
            model_name='invtype',
            name='iconID',
            field=models.FloatField(null=True),
        ),
        migrations.AlterField(
            model_name='invtype',
            name='soundID',
            field=models.IntegerField(null=True),
        ),
        migrations.AlterField(
            model_name='itemgroup',
            name='iconID',
            field=models.IntegerField(null=True),
        ),
        migrations.AlterField(
            model_name='itemmarketgroup',
            name='iconID',
            field=models.IntegerField(null=True),
        ),
        migrations.AlterField(
            model_name='invtype',
            name='raceID',
            field=models.IntegerField(blank=True, null=True),
        ),
        migrations.CreateModel(
            name='CartItem',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('amount', models.IntegerField(verbose_name='How many of that item')),
                ('invtype', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='market.InvType', verbose_name='Related Item Type')),
                ('eveuser', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='crest_app.EveUserProfile', verbose_name='Related EVE User Profile')),
            ],
            options={
                'verbose_name': 'Cart Item',
                'verbose_name_plural': 'Cart Items',
            },
        ),
    ]
class Migration(migrations.Migration):
    dependencies = [
        ('ubigeo', '0006_auto_20170310_1635'),
        ('ciudadano', '0026_ciudadanoparentesco'),
    ]

    operations = [
        migrations.AddField(
            model_name='ciudadano',
            name='departamento_domicilio_actual',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='departamento_domicilio_actual',
                to='ubigeo.UbigeoDepartamento'),
        ),
        migrations.AddField(
            model_name='ciudadano',
            name='distrito_domicilio_actual',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='distrito_domicilio_actual',
                to='ubigeo.UbigeoDistrito'),
        ),
        migrations.AddField(
            model_name='ciudadano',
            name='domicilio_direccion_actual',
            field=models.CharField(blank=True,
                                   max_length=500,
                                   null=True,
                                   verbose_name='Direccion Actual'),
        ),
        migrations.AddField(
            model_name='ciudadano',
            name='domicilio_referencia_actual',
            field=models.CharField(blank=True,
                                   max_length=500,
                                   null=True,
                                   verbose_name='Domicilio Referencia Actual'),
        ),
        migrations.AddField(
            model_name='ciudadano',
            name='localidad_domicilio_actual',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='localidad_domicilio_actual',
                to='ubigeo.UbigeoLocalidad'),
        ),
        migrations.AddField(
            model_name='ciudadano',
            name='pais_domicilio_actual',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='pais_domicilio_actual',
                to='ubigeo.UbigeoPais'),
        ),
        migrations.AddField(
            model_name='ciudadano',
            name='provincia_domicilio_actual',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                related_name='provincia_domicilio_actual',
                to='ubigeo.UbigeoProvincia'),
        ),
        migrations.AlterField(
            model_name='ciudadano',
            name='domicilio_direccion',
            field=models.CharField(blank=True,
                                   max_length=500,
                                   null=True,
                                   verbose_name='Domicilio Direccion'),
        ),
        migrations.AlterField(
            model_name='ciudadano',
            name='domicilio_referencia',
            field=models.CharField(blank=True,
                                   max_length=500,
                                   null=True,
                                   verbose_name='Domicilio Referencia'),
        ),
        migrations.AlterField(
            model_name='ciudadano',
            name='estado_civil',
            field=models.CharField(blank=True,
                                   choices=[('1', 'Soltero(a)'),
                                            ('2', 'Casado(a)'),
                                            ('3', 'Conviviente'),
                                            ('4', 'Divorciado(a)'),
                                            ('5', 'Viudo(a)')],
                                   default='1',
                                   max_length=2,
                                   null=True,
                                   verbose_name='Estado civil'),
        ),
        migrations.AlterField(
            model_name='ciudadano',
            name='origen_datos',
            field=models.PositiveSmallIntegerField(blank=True,
                                                   choices=[
                                                       (1, 'local'),
                                                       (2, 'hisminsa'),
                                                       (3, 'busqueda reniec')
                                                   ],
                                                   default=1,
                                                   null=True),
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('managerApp', '0019_auto_20170327_0441'),
    ]

    operations = [
        migrations.AlterField(
            model_name='article',
            name='available_quantity',
            field=models.IntegerField(default='1'),
        ),
        migrations.AlterField(
            model_name='article',
            name='buying_mode',
            field=models.CharField(default='buy_it_now', max_length=60),
        ),
        migrations.AlterField(
            model_name='article',
            name='category_id',
            field=models.CharField(default='MLA3530', max_length=60),
        ),
        migrations.AlterField(
            model_name='article',
            name='condition',
            field=models.CharField(default='new', max_length=60),
        ),
        migrations.AlterField(
            model_name='article',
            name='currency_id',
            field=models.CharField(default='ARS', max_length=60),
        ),
        migrations.AlterField(
            model_name='article',
            name='description',
            field=models.CharField(default='Item de test - No Ofertar', max_length=9999),
        ),
        migrations.AlterField(
            model_name='article',
            name='listing_type_id',
            field=models.CharField(default='gold_special', max_length=60),
        ),
        migrations.AlterField(
            model_name='article',
            name='pictures',
            field=models.URLField(default='[{"source":"http://mla-s2-p.mlstatic.com/968521-MLA20805195516_072016-O.jpg"}]', max_length=2000),
        ),
        migrations.AlterField(
            model_name='article',
            name='price',
            field=models.FloatField(default='10'),
        ),
        migrations.AlterField(
            model_name='article',
            name='title',
            field=models.CharField(default='Item de test - No Ofertar', max_length=60),
        ),
        migrations.AlterField(
            model_name='article',
            name='video_id',
            field=models.CharField(default='YOUTUBE_ID_HERE', max_length=60),
        ),
        migrations.AlterField(
            model_name='article',
            name='warranty',
            field=models.CharField(default='12 months', max_length=60),
        ),
    ]
Exemple #30
0
class Migration(migrations.Migration):

    dependencies = [
        ('problems', '0002_statuses'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='items',
            options={
                'verbose_name_plural': 'Items',
                'verbose_name': 'Item'
            },
        ),
        migrations.AlterModelOptions(
            name='statuses',
            options={
                'verbose_name_plural': 'Statuses',
                'verbose_name': 'Status'
            },
        ),
        migrations.AlterField(
            model_name='items',
            name='create',
            field=models.DateTimeField(auto_now_add=True,
                                       verbose_name='create'),
        ),
        migrations.AlterField(
            model_name='items',
            name='last_update',
            field=models.DateTimeField(auto_now_add=True,
                                       verbose_name='last_update'),
        ),
        migrations.AlterField(
            model_name='statuses',
            name='create',
            field=models.DateTimeField(auto_now_add=True,
                                       verbose_name='create'),
        ),
        migrations.AlterField(
            model_name='statuses',
            name='deadline',
            field=models.DateTimeField(null=True,
                                       blank=True,
                                       verbose_name='deadline'),
        ),
        migrations.AlterField(
            model_name='statuses',
            name='owner',
            field=models.ForeignKey(related_name='status_owner',
                                    verbose_name='owner',
                                    to=settings.AUTH_USER_MODEL),
        ),
        migrations.AlterField(
            model_name='statuses',
            name='resolution',
            field=models.CharField(max_length=3000, verbose_name='resolution'),
        ),
        migrations.AlterField(
            model_name='statuses',
            name='status',
            field=models.CharField(choices=[('3', 'waiting_board_decision'),
                                            ('2', 'inwork'), ('6', 'reject'),
                                            ('1', 'pedding'),
                                            ('4', 'waiting_general_meeting'),
                                            ('5', 'done')],
                                   max_length=15,
                                   verbose_name='status'),
        ),
    ]