コード例 #1
0
class Migration(migrations.Migration):

    dependencies = [
        ('about', '0014_experience'),
    ]

    operations = [
        migrations.AddField(
            model_name='generalinformation',
            name='details',
            field=models.TextField(blank=True),
        ),
        migrations.AddField(
            model_name='generalinformation',
            name='logo',
            field=models.ImageField(
                blank=True, upload_to=about.models.get_logo_image_name),
        ),
        migrations.AddField(
            model_name='generalinformation',
            name='logo_2',
            field=models.ImageField(
                blank=True, upload_to=about.models.get_logo_image_name),
        ),
    ]
コード例 #2
0
class Migration(migrations.Migration):

    dependencies = [
        ('about', '0002_auto_20180710_2154'),
    ]

    operations = [
        migrations.CreateModel(
            name='AboutUs',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('image',
                 models.ImageField(
                     upload_to=about.models.get_about_image_name)),
                ('image_2',
                 models.ImageField(
                     blank=True, upload_to=about.models.get_about_image_name)),
                ('title', models.CharField(max_length=400)),
                ('details', models.TextField()),
            ],
        ),
    ]
コード例 #3
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='CeoBanner',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('banner_image',
                 models.ImageField(
                     upload_to=about.models.image_upload_to_banner)),
                ('banner_title', models.CharField(max_length=120)),
                ('banner_year_title', models.CharField(max_length=120)),
                ('banner_creative_title', models.CharField(max_length=120)),
                ('founder_image',
                 models.ImageField(
                     upload_to=about.models.image_upload_to_founder)),
                ('founder_name', models.CharField(max_length=120)),
                ('founder_title', models.CharField(max_length=120)),
                ('desciption_one', models.TextField()),
                ('desciption_two', models.TextField()),
            ],
        ),
        migrations.CreateModel(
            name='Header',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(max_length=120)),
            ],
        ),
    ]
コード例 #4
0
class Migration(migrations.Migration):

    dependencies = [
        ('about', '0004_remove_aboutus_image_2'),
    ]

    operations = [
        migrations.CreateModel(
            name='AboutCompany',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('image', models.ImageField(upload_to=about.models.get_company_image_name)),
                ('title', models.CharField(max_length=50)),
                ('details', models.TextField()),
            ],
        ),
    ]
コード例 #5
0
class Migration(migrations.Migration):

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

    operations = [
        migrations.CreateModel(
            name='Team',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('person_image', models.ImageField(upload_to=about.models.image_upload_to_team)),
                ('person_name', models.CharField(max_length=120)),
                ('description', models.TextField()),
                ('persom_number', models.CharField(max_length=120)),
                ('person_email', models.EmailField(max_length=254)),
            ],
        ),
    ]
コード例 #6
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Person',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=200)),
                ('course', models.CharField(max_length=200)),
                ('comp_year', models.IntegerField(verbose_name='Year of Completion')),
                ('email', models.EmailField(max_length=254)),
                ('number', models.CharField(max_length=14)),
                ('portfolio', models.TextField(default='No Bio Available', verbose_name='brief description')),
                ('h', models.IntegerField(default=10, help_text='do not touch this')),
                ('w', models.IntegerField(default=10, help_text='do not touch this')),
                ('profile_pic', models.ImageField(height_field='h', upload_to=about.models.set_upload_path, width_field='w')),
            ],
        ),
        migrations.CreateModel(
            name='Position',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('in_office', models.DateField(default=datetime.date(2018, 8, 1), verbose_name='Office Commencement')),
                ('position_name', models.CharField(choices=[('PR', 'President'), ('VP', 'Vice-President'), ('GS', 'General Secretary'), ('OS', 'Organizing Secretary'), ('FS', 'Financial Secretary'), ('RO', 'Public Relations'), ('EC', 'Electoral Commisioner')], max_length=2, unique_for_year='in_office', verbose_name='Position held')),
            ],
        ),
        migrations.AddField(
            model_name='person',
            name='position',
            field=models.OneToOneField(limit_choices_to={'person': None}, on_delete=django.db.models.deletion.CASCADE, to='about.Position'),
        ),
    ]
コード例 #7
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='AboutPost',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(blank=True, max_length=250)),
                ('body', models.TextField(blank=True, max_length=5000)),
                ('image',
                 models.ImageField(blank=True,
                                   default='ww.png',
                                   upload_to=about.models.upload_location)),
                ('date_published',
                 models.DateTimeField(auto_now_add=True,
                                      verbose_name='date published')),
                ('date_updated',
                 models.DateTimeField(auto_now=True,
                                      verbose_name='date updated')),
                ('slug',
                 models.SlugField(blank=True, max_length=250, unique=True)),
                ('photo_1',
                 models.ImageField(blank=True,
                                   upload_to=about.models.upload_location,
                                   verbose_name='Photo 1 (Optional)')),
                ('photo_2',
                 models.ImageField(blank=True,
                                   upload_to=about.models.upload_location,
                                   verbose_name='Photo 2 (Optional)')),
                ('photo_3',
                 models.ImageField(blank=True,
                                   upload_to=about.models.upload_location,
                                   verbose_name='Photo 3 (Optional)')),
                ('photo_4',
                 models.ImageField(blank=True,
                                   upload_to=about.models.upload_location,
                                   verbose_name='Photo 4 (Optional)')),
                ('photo_5',
                 models.ImageField(blank=True,
                                   upload_to=about.models.upload_location,
                                   verbose_name='Photo 5 (Optional)')),
                ('photo_6',
                 models.ImageField(blank=True,
                                   upload_to=about.models.upload_location,
                                   verbose_name='Photo 6 (Optional)')),
                ('photo_7',
                 models.ImageField(blank=True,
                                   upload_to=about.models.upload_location,
                                   verbose_name='Photo 7 (Optional)')),
                ('photo_8',
                 models.ImageField(blank=True,
                                   upload_to=about.models.upload_location,
                                   verbose_name='Photo 8 (Optional)')),
                ('photo_9',
                 models.ImageField(blank=True,
                                   upload_to=about.models.upload_location,
                                   verbose_name='Photo 9 (Optional)')),
                ('photo_10',
                 models.ImageField(blank=True,
                                   upload_to=about.models.upload_location,
                                   verbose_name='Photo 10 (Optional)')),
                ('photo_11',
                 models.ImageField(blank=True,
                                   upload_to=about.models.upload_location,
                                   verbose_name='Photo 11 (Optional)')),
                ('photo_12',
                 models.ImageField(blank=True,
                                   upload_to=about.models.upload_location,
                                   verbose_name='Photo 12 (Optional)')),
                ('photo_13',
                 models.ImageField(blank=True,
                                   upload_to=about.models.upload_location,
                                   verbose_name='Photo 13 (Optional)')),
                ('photo_14',
                 models.ImageField(blank=True,
                                   upload_to=about.models.upload_location,
                                   verbose_name='Photo 14 (Optional)')),
                ('photo_15',
                 models.ImageField(blank=True,
                                   upload_to=about.models.upload_location,
                                   verbose_name='Photo 15 (Optional)')),
                ('photo_16',
                 models.ImageField(blank=True,
                                   upload_to=about.models.upload_location,
                                   verbose_name='Photo 16 (Optional)')),
                ('photo_17',
                 models.ImageField(blank=True,
                                   upload_to=about.models.upload_location,
                                   verbose_name='Photo 17 (Optional)')),
                ('photo_18',
                 models.ImageField(blank=True,
                                   upload_to=about.models.upload_location,
                                   verbose_name='Photo 18 (Optional)')),
                ('photo_19',
                 models.ImageField(blank=True,
                                   upload_to=about.models.upload_location,
                                   verbose_name='Photo 19 (Optional)')),
                ('photo_20',
                 models.ImageField(blank=True,
                                   upload_to=about.models.upload_location,
                                   verbose_name='Photo 20 (Optional)')),
                ('photo_21',
                 models.ImageField(blank=True,
                                   upload_to=about.models.upload_location,
                                   verbose_name='Photo 21 (Optional)')),
                ('photo_22',
                 models.ImageField(blank=True,
                                   upload_to=about.models.upload_location,
                                   verbose_name='Photo 22 (Optional)')),
                ('photo_23',
                 models.ImageField(blank=True,
                                   upload_to=about.models.upload_location,
                                   verbose_name='Photo 23 (Optional)')),
                ('photo_24',
                 models.ImageField(blank=True,
                                   upload_to=about.models.upload_location,
                                   verbose_name='Photo 24 (Optional)')),
                ('photo_25',
                 models.ImageField(blank=True,
                                   upload_to=about.models.upload_location,
                                   verbose_name='Photo 25 (Optional)')),
                ('photo_26',
                 models.ImageField(blank=True,
                                   upload_to=about.models.upload_location,
                                   verbose_name='Photo 26 (Optional)')),
                ('photo_27',
                 models.ImageField(blank=True,
                                   upload_to=about.models.upload_location,
                                   verbose_name='Photo 27 (Optional)')),
                ('photo_28',
                 models.ImageField(blank=True,
                                   upload_to=about.models.upload_location,
                                   verbose_name='Photo 28 (Optional)')),
                ('photo_29',
                 models.ImageField(blank=True,
                                   upload_to=about.models.upload_location,
                                   verbose_name='Photo 29 (Optional)')),
                ('author',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
コード例 #8
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='ManOverview',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=30)),
                ('website',
                 models.CharField(blank=True, max_length=30, null=True)),
                ('address_line_1', models.CharField(max_length=120)),
                ('address_line_2',
                 models.CharField(blank=True, max_length=120, null=True)),
                ('email', models.EmailField(max_length=254)),
                ('phone', models.DecimalField(decimal_places=0,
                                              max_digits=13)),
                ('objective', models.TextField(blank=True, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='ResearchInterest',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=120)),
                ('description', models.TextField(blank=True, null=True)),
                ('man_overview',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='about.ManOverview')),
            ],
        ),
        migrations.CreateModel(
            name='Qualification',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('course_name', models.CharField(max_length=120)),
                ('certificate',
                 models.FileField(
                     blank=True,
                     null=True,
                     storage=django.core.files.storage.FileSystemStorage(
                         location=
                         'C:\\Users\\Md_Nadir\\Envs\\njnafir\\src\\njNafir\\njNafir_staticfiles_dirs\\med_prot_file'
                     ),
                     upload_to=about.models.
                     qualification_certificate_upload_path)),
                ('man_overview',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='about.ManOverview')),
            ],
        ),
        migrations.CreateModel(
            name='Membership',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('in_detail', models.CharField(max_length=255)),
                ('man_overview',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='about.ManOverview')),
            ],
        ),
        migrations.CreateModel(
            name='Language',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('language', models.CharField(max_length=20)),
                ('man_overview',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='about.ManOverview')),
            ],
        ),
        migrations.CreateModel(
            name='Interest',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('interest_name', models.CharField(max_length=32)),
                ('interest_type',
                 models.CharField(blank=True, max_length=20, null=True)),
                ('man_overview',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='about.ManOverview')),
            ],
        ),
        migrations.CreateModel(
            name='Education',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('degree', models.CharField(max_length=40)),
                ('subject', models.CharField(max_length=120)),
                ('year',
                 models.DecimalField(blank=True,
                                     decimal_places=0,
                                     max_digits=4,
                                     null=True)),
                ('institute',
                 models.CharField(blank=True, max_length=120, null=True)),
                ('result',
                 models.DecimalField(blank=True,
                                     decimal_places=2,
                                     max_digits=3,
                                     null=True)),
                ('certificate',
                 models.FileField(
                     blank=True,
                     null=True,
                     storage=django.core.files.storage.FileSystemStorage(
                         location=
                         'C:\\Users\\Md_Nadir\\Envs\\njnafir\\src\\njNafir\\njNafir_staticfiles_dirs\\med_prot_file'
                     ),
                     upload_to=about.models.education_certificate_upload_path)
                 ),
                ('man_overview',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='about.ManOverview')),
            ],
        ),
        migrations.CreateModel(
            name='Award',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('award_detail', models.CharField(max_length=255)),
                ('prove_file',
                 models.FileField(
                     blank=True,
                     null=True,
                     storage=django.core.files.storage.FileSystemStorage(
                         location=
                         'C:\\Users\\Md_Nadir\\Envs\\njnafir\\src\\njNafir\\njNafir_staticfiles_dirs\\med_prot_file'
                     ),
                     upload_to=about.models.award_certificate_upload_path)),
                ('man_overview',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='about.ManOverview')),
            ],
        ),
        migrations.CreateModel(
            name='Appointment',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('position', models.CharField(max_length=120)),
                ('institute', models.CharField(max_length=120)),
                ('department',
                 models.CharField(blank=True, max_length=120, null=True)),
                ('start_date',
                 models.CharField(blank=True, max_length=12, null=True)),
                ('end_date',
                 models.CharField(blank=True, max_length=12, null=True)),
                ('man_overview',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='about.ManOverview')),
            ],
        ),
    ]