Exemplo n.º 1
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='Code',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('codenum', models.IntegerField()),
                ('codename', models.CharField(max_length=50)),
                ('where', models.CharField(max_length=50)),
            ],
        ),
        migrations.CreateModel(
            name='Graph',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(max_length=200)),
            ],
        ),
        migrations.CreateModel(
            name='Notice',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('num', models.IntegerField()),
                ('title',
                 models.CharField(max_length=200,
                                  verbose_name='\uc81c\ubaa9')),
                ('content',
                 ckeditor.fields.RichTextField(verbose_name='\ub0b4\uc6a9')),
                ('uploadfile',
                 models.FileField(null='true',
                                  upload_to=WiltseApp.models.generate_filename,
                                  verbose_name='\ucca8\ubd80\ud30c\uc77c')),
                ('writer',
                 models.CharField(max_length=200,
                                  verbose_name='\uc791\uc131\uc790')),
                ('date', models.DateField()),
            ],
        ),
    ]
Exemplo n.º 2
0
class Migration(migrations.Migration):

    dependencies = [
        ('WiltseApp', '0013_auto_20170124_1115'),
    ]

    operations = [
        migrations.AlterField(
            model_name='handbook',
            name='num',
            field=models.IntegerField(default=WiltseApp.models.nu),
        ),
    ]
Exemplo n.º 3
0
class Migration(migrations.Migration):

    dependencies = [
        ('WiltseApp', '0015_auto_20170124_1202'),
    ]

    operations = [
        migrations.AlterField(
            model_name='notice',
            name='num',
            field=models.IntegerField(default=WiltseApp.models.nu3),
        ),
    ]
Exemplo n.º 4
0
class Migration(migrations.Migration):

    dependencies = [
        ('WiltseApp', '0012_auto_20170120_1942'),
    ]

    operations = [
        migrations.AlterField(
            model_name='regulation',
            name='num',
            field=models.IntegerField(default=WiltseApp.models.nu),
        ),
    ]
Exemplo n.º 5
0
class Migration(migrations.Migration):

    dependencies = [
        ('WiltseApp', '0008_code_codenum'),
    ]

    operations = [
        migrations.CreateModel(
            name='Handbook',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('num', models.IntegerField(default=1)),
                ('title', models.CharField(max_length=200, verbose_name='\uc81c\ubaa9')),
                ('document', models.FileField(blank=True, null=True, upload_to=WiltseApp.models.generate_filename, verbose_name='\ucca8\ubd80\ud30c\uc77c')),
                ('writer', models.CharField(max_length=200, verbose_name='\uc791\uc131\uc790')),
                ('code', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='WiltseApp.Code')),
            ],
        ),
    ]
Exemplo n.º 6
0
class Migration(migrations.Migration):

    dependencies = [
        ('WiltseApp', '0011_auto_20170118_1701'),
    ]

    operations = [
        migrations.CreateModel(
            name='Commission',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('num', models.IntegerField(default=1)),
                ('title',
                 models.CharField(max_length=200,
                                  verbose_name='\uc81c\ubaa9')),
                ('content',
                 ckeditor.fields.RichTextField(verbose_name='\ub0b4\uc6a9')),
                ('uploadfile',
                 models.FileField(blank=True,
                                  null=True,
                                  upload_to=WiltseApp.models.generate_filename,
                                  verbose_name='\ucca8\ubd80\ud30c\uc77c')),
                ('writer',
                 models.CharField(max_length=200,
                                  verbose_name='\uc791\uc131\uc790')),
                ('date', models.DateField()),
                ('code',
                 models.ForeignKey(null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to='WiltseApp.Code')),
            ],
        ),
        migrations.CreateModel(
            name='Regulation',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('num', models.IntegerField(default=1)),
                ('title',
                 models.CharField(max_length=200,
                                  verbose_name='\uc81c\ubaa9')),
                ('document',
                 models.FileField(blank=True,
                                  null=True,
                                  upload_to=WiltseApp.models.generate_filename,
                                  verbose_name='\uc790\ub8cc')),
                ('writer',
                 models.CharField(max_length=200,
                                  verbose_name='\uc791\uc131\uc790')),
                ('code',
                 models.ForeignKey(null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to='WiltseApp.Code')),
            ],
        ),
        migrations.AlterField(
            model_name='handbook',
            name='document',
            field=models.FileField(
                blank=True,
                null=True,
                upload_to=WiltseApp.models.generate_filename,
                verbose_name='\uc790\ub8cc'),
        ),
    ]