Exemplo n.º 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),
        ),
    ]
Exemplo n.º 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()),
            ],
        ),
    ]
Exemplo n.º 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)),
            ],
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('about', '0006_auto_20210529_0724'),
    ]

    operations = [
        migrations.AlterField(
            model_name='team',
            name='photo',
            field=models.ImageField(null=True, upload_to=about.models.PathAndRename('about/')),
        ),
    ]
class Migration(migrations.Migration):

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

    operations = [
        migrations.AlterField(
            model_name='team',
            name='image',
            field=models.ImageField(
                upload_to=about.models.get_team_image_name),
        ),
    ]
Exemplo n.º 6
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()),
            ],
        ),
    ]
Exemplo n.º 7
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='AboutModel',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=50, verbose_name='Title')),
                ('cover_picture', models.ImageField(blank=True, upload_to=about.models.upload_path, verbose_name='Cover Picture')),
                ('content', ckeditor.fields.RichTextField(verbose_name='Content')),
            ],
        ),
    ]
Exemplo n.º 8
0
class Migration(migrations.Migration):

    dependencies = [
        ('about', '0009_alter_team_post_assign'),
    ]

    operations = [
        migrations.CreateModel(
            name='Alumni',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('photo',
                 models.ImageField(
                     null=True,
                     upload_to=about.models.PathAndRename('about/team/'))),
                ('name', models.CharField(max_length=250, null=True)),
                ('branch', models.CharField(max_length=250, null=True)),
                ('domain_assign',
                 models.CharField(choices=[('WA', 'WEB & APP'),
                                           ('PM', 'PR MARKETING'),
                                           ('DO', 'DOCUMENTATION'),
                                           ('SS', 'SPONSERSHIP'),
                                           ('DV', 'DESIGN'),
                                           ('TT', 'TECHNICAL')],
                                  max_length=2,
                                  null=True)),
                ('fb_url', models.URLField(blank=True, null=True)),
                ('instagram_url', models.URLField(blank=True, null=True)),
                ('github_url', models.URLField(blank=True, null=True)),
                ('email_id',
                 models.EmailField(blank=True, max_length=254, null=True)),
                ('phone',
                 models.CharField(blank=True, max_length=100, null=True)),
                ('joining', models.DateField(blank=True, null=True)),
            ],
            options={
                'ordering': ['pk'],
            },
        ),
    ]
Exemplo n.º 9
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)),
            ],
        ),
    ]
Exemplo n.º 10
0
class Migration(migrations.Migration):

    dependencies = [
        ('about', '0007_alter_team_photo'),
    ]

    operations = [
        migrations.AlterModelOptions(
            name='team',
            options={'ordering': ['pk']},
        ),
        migrations.AlterField(
            model_name='team',
            name='photo',
            field=models.ImageField(
                null=True,
                upload_to=about.models.PathAndRename('about/team/')),
        ),
    ]
Exemplo n.º 11
0
class Migration(migrations.Migration):

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

    operations = [
        migrations.RenameModel(
            old_name='Contents',
            new_name='Content',
        ),
        migrations.CreateModel(
            name='Image',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
                ('image', models.ImageField(storage=about.models.OverwriteStorage(), upload_to='images/about')),
                ('content', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='images', to='about.Content')),
            ],
        ),
    ]
Exemplo n.º 12
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'),
        ),
    ]
Exemplo n.º 13
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)),
            ],
        ),
    ]