class Migration(migrations.Migration):

    dependencies = [
        ('Home', '0020_auto_20201028_1416'),
    ]

    operations = [
        migrations.AlterField(
            model_name='post',
            name='flat_type',
            field=models.CharField(choices=[
                ('Studio Apartment', 'Studio Apartment'),
                ('2-Room Flat', '2-Room Flat'), ('3-Room Flat', '3-Room Flat'),
                ('4-Room Flat', '4-Room Flat'), ('5-Room Flat', '5-Room Flat'),
                ('Executive Flat', 'Executive Flat')
            ],
                                   default='2-Room Flat',
                                   max_length=20,
                                   validators=[Home.models.validate_flat]),
        ),
        migrations.AlterField(
            model_name='post',
            name='town',
            field=models.CharField(choices=[('ANG MO KIO', 'ANG MO KIO'),
                                            ('BEDOK', 'BEDOK'),
                                            ('BISHAN', 'BISHAN'),
                                            ('BUKIT MERAH', 'BUKIT MERAH'),
                                            ('BUKIT BATOK', 'BUKIT BATOK'),
                                            ('CENTRAL AREA', 'CENTRAL AREA'),
                                            ('BUKIT PANJANG', 'BUKIT PANJANG'),
                                            ('GEYLANG', 'GEYLANG'),
                                            ('BUKIT TIMAH', 'BUKIT TIMAH'),
                                            ('CHOA CHU KANG', 'CHOA CHU KANG'),
                                            ('CLEMENTI', 'CLEMENTI'),
                                            ('HOUGANG', 'HOUGANG'),
                                            ('QUEENSTOWN', 'QUEENSTOWN'),
                                            ('JURONG EAST', 'JURONG EAST'),
                                            ('JURONG WEST', 'JURONG WEST'),
                                            ('KALLANG', 'KALLANG'),
                                            ('MARINE PARADE', 'MARINE PARADE'),
                                            ('PASIR RIS', 'PASIR RIS'),
                                            ('PUNGGOL', 'PUNGGOL'),
                                            ('SEMBAWANG', 'SEMBAWANG'),
                                            ('SENGKANG', 'SENGKANG'),
                                            ('SERANGOON', 'SERANGOON'),
                                            ('TAMPINES', 'TAMPINES'),
                                            ('TOA PAYOH', 'TOA PAYOH'),
                                            ('WOODLANDS', 'WOODLANDS'),
                                            ('YISHUN', 'YISHUN')],
                                   default='ANG MO KIO',
                                   max_length=25,
                                   validators=[Home.models.validate_town]),
        ),
    ]
Пример #2
0
class Migration(migrations.Migration):

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

    operations = [
        migrations.CreateModel(
            name='Profile',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('first_name',
                 models.CharField(blank=True, max_length=30, null=True)),
                ('last_name',
                 models.CharField(blank=True, max_length=30, null=True)),
                ('bio', models.TextField(blank=True, max_length=500)),
                ('phone', models.IntegerField(default=None)),
                ('gender',
                 models.CharField(choices=[('M', 'Male'), ('F', 'Female')],
                                  default=None,
                                  max_length=1)),
                ('age', models.IntegerField(blank=True, default=3, null=True)),
                ('address',
                 models.TextField(blank=True, max_length=300, null=True)),
                ('file',
                 models.ImageField(blank=True,
                                   null=True,
                                   upload_to=Home.models.upload_image_path)),
                ('join_date', models.DateField(auto_now_add=True)),
                ('user',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'Profile',
                'verbose_name_plural': 'Profiles',
                'ordering': ['user'],
                'get_latest_by': 'join_date',
            },
        ),
    ]
Пример #3
0
class Migration(migrations.Migration):

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

    operations = [
        migrations.CreateModel(
            name='Profile',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('bio', models.TextField(blank=True, max_length=500)),
                ('location', models.CharField(blank=True, max_length=30)),
                ('tel',
                 models.CharField(
                     blank=True,
                     max_length=15,
                     validators=[
                         django.core.validators.RegexValidator(
                             message=
                             "Enter valid phone number must be entered in the format: '+9999999999'.",
                             regex='^\\+?1?\\d{9,15}$')
                     ])),
                ('gender',
                 models.CharField(choices=[('M', 'Male'), ('F', 'Female'),
                                           ('O', 'Other')],
                                  max_length=1)),
                ('birth_date', models.DateField(blank=True, null=True)),
                ('img',
                 models.ImageField(
                     blank=True,
                     null=True,
                     upload_to='',
                     verbose_name=Home.models.upload_image_path)),
                ('user',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
Пример #4
0
class Migration(migrations.Migration):

    dependencies = [
        ('Home', '0011_info'),
    ]

    operations = [
        migrations.CreateModel(
            name='TESTIMONIALS',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=80)),
                ('work', models.CharField(max_length=80)),
                ('image', models.ImageField(upload_to=Home.models.Image_upload2)),
                ('description', models.TextField(max_length=1000)),
            ],
        ),
    ]
Пример #5
0
class Migration(migrations.Migration):

    dependencies = [
        ('adminside', '0003_auto_20200321_1443'),
        ('Home', '0010_auto_20200321_1520'),
    ]

    operations = [
        migrations.AddField(
            model_name='product',
            name='ApprovedBy',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to='adminside.Employee'),
        ),
        migrations.AddField(
            model_name='product',
            name='Condition',
            field=models.CharField(choices=[('New', 'New'), ('Old', 'Old')],
                                   default='',
                                   max_length=5),
        ),
        migrations.AddField(
            model_name='product',
            name='Feature1',
            field=models.CharField(default='', max_length=50),
        ),
        migrations.AddField(
            model_name='product',
            name='Feature2',
            field=models.CharField(blank=True,
                                   default='',
                                   max_length=50,
                                   null=True),
        ),
        migrations.AddField(
            model_name='product',
            name='Feature3',
            field=models.CharField(blank=True,
                                   default='',
                                   max_length=50,
                                   null=True),
        ),
        migrations.AddField(
            model_name='product',
            name='Feature4',
            field=models.CharField(blank=True,
                                   default='',
                                   max_length=50,
                                   null=True),
        ),
        migrations.AddField(
            model_name='product',
            name='Feature5',
            field=models.CharField(blank=True,
                                   default='',
                                   max_length=50,
                                   null=True),
        ),
        migrations.AddField(
            model_name='product',
            name='IsReported',
            field=models.BooleanField(choices=[(True, 'Yes'), (False, 'No')],
                                      default=False),
        ),
        migrations.AddField(
            model_name='product',
            name='IsVisited',
            field=models.BooleanField(choices=[(True, 'Yes'), (False, 'No')],
                                      default=False),
        ),
        migrations.AddField(
            model_name='product',
            name='OtherBrand',
            field=models.CharField(blank=True, max_length=50, null=True),
        ),
        migrations.AddField(
            model_name='product',
            name='Rate',
            field=models.DecimalField(blank=True,
                                      decimal_places=1,
                                      max_digits=2,
                                      null=True),
        ),
        migrations.AddField(
            model_name='product',
            name='image2',
            field=models.ImageField(blank=True,
                                    null=True,
                                    upload_to=Home.models.upload_image_path),
        ),
        migrations.AddField(
            model_name='product',
            name='image3',
            field=models.ImageField(blank=True,
                                    null=True,
                                    upload_to=Home.models.upload_image_path),
        ),
        migrations.AddField(
            model_name='product',
            name='image4',
            field=models.ImageField(blank=True,
                                    null=True,
                                    upload_to=Home.models.upload_image_path),
        ),
        migrations.AddField(
            model_name='product',
            name='image5',
            field=models.ImageField(blank=True,
                                    null=True,
                                    upload_to=Home.models.upload_image_path),
        ),
        migrations.AddField(
            model_name='product',
            name='offerDetails',
            field=models.CharField(default='', max_length=50),
        ),
        migrations.AddField(
            model_name='product',
            name='rejection_reason',
            field=models.CharField(blank=True, max_length=100, null=True),
        ),
        migrations.AlterField(
            model_name='product',
            name='brand',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to='adminside.Brandmaster'),
        ),
        migrations.AlterField(
            model_name='product',
            name='post_date',
            field=models.DateTimeField(auto_now=True),
        ),
        migrations.AlterField(
            model_name='product',
            name='update_date',
            field=models.DateTimeField(auto_now_add=True),
        ),
        migrations.AlterField(
            model_name='product',
            name='verifier_person',
            field=models.ForeignKey(
                blank=True,
                null=True,
                on_delete=django.db.models.deletion.CASCADE,
                to='adminside.Workers'),
        ),
    ]
Пример #6
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0012_alter_user_first_name_max_length'),
        ('Poll', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='BusinessManager',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('rut_bm', models.CharField(max_length=12, unique=True)),
                ('fullname', models.CharField(max_length=100)),
                ('email', models.EmailField(max_length=254, unique=True)),
                ('phone', models.PositiveIntegerField()),
                ('last_login', models.DateField(auto_now=True)),
            ],
            options={
                'verbose_name': 'Representante',
                'verbose_name_plural': 'Representantes',
            },
        ),
        migrations.CreateModel(
            name='City',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name_city', models.CharField(max_length=50)),
            ],
            options={
                'verbose_name': 'Ciudad',
                'verbose_name_plural': 'Ciudades',
            },
        ),
        migrations.CreateModel(
            name='Town',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name_town_t', models.CharField(max_length=50)),
            ],
            options={
                'verbose_name': 'Comuna',
                'verbose_name_plural': 'Comunas',
            },
        ),
        migrations.CreateModel(
            name='UserGuiar',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('password',
                 models.CharField(max_length=128, verbose_name='password')),
                ('last_login',
                 models.DateTimeField(blank=True,
                                      null=True,
                                      verbose_name='last login')),
                ('is_superuser',
                 models.BooleanField(
                     default=False,
                     help_text=
                     'Designates that this user has all permissions without explicitly assigning them.',
                     verbose_name='superuser status')),
                ('rut', models.CharField(max_length=12, unique=True)),
                ('name', models.CharField(max_length=100)),
                ('address', models.CharField(max_length=100, null=True)),
                ('seniority',
                 models.PositiveSmallIntegerField(blank=True, null=True)),
                ('email_manager', models.EmailField(max_length=254)),
                ('n_emp_hired',
                 models.PositiveIntegerField(default=0, null=True)),
                ('n_cont_emp', models.PositiveIntegerField(default=0,
                                                           null=True)),
                ('n_veh_com_light',
                 models.PositiveIntegerField(default=0, null=True)),
                ('n_veh_com_cont',
                 models.PositiveIntegerField(default=0, null=True)),
                ('n_veh_com_heavy',
                 models.PositiveIntegerField(default=0, null=True)),
                ('n_veh_com_heavy_cont',
                 models.PositiveIntegerField(default=0, null=True)),
                ('n_mach_heavy',
                 models.PositiveIntegerField(default=0, null=True)),
                ('n_mach_heavy_cont',
                 models.PositiveIntegerField(default=0, null=True)),
                ('is_admin', models.BooleanField(default=False)),
                ('enable_poll', models.BooleanField(default=True)),
                ('is_active', models.BooleanField(default=True)),
                ('building',
                 models.ManyToManyField(blank=True,
                                        to='Poll.BuildingProcess')),
                ('city',
                 models.ForeignKey(
                     null=True,
                     on_delete=django.db.models.deletion.DO_NOTHING,
                     to='Home.city')),
                ('electricity_confirmed',
                 models.ForeignKey(
                     null=True,
                     on_delete=django.db.models.deletion.DO_NOTHING,
                     to='Poll.electricityconfirmed')),
                ('electricity_control',
                 models.ManyToManyField(to='Poll.ElectricityControl')),
                ('explosive_confirmed',
                 models.ForeignKey(
                     null=True,
                     on_delete=django.db.models.deletion.DO_NOTHING,
                     to='Poll.explosiveconfirmed')),
                ('explosive_control',
                 models.ManyToManyField(to='Poll.ExplosiveControl')),
                ('general_services',
                 models.ManyToManyField(blank=True,
                                        to='Poll.GeneralServicesProcess')),
                ('groups',
                 models.ManyToManyField(
                     blank=True,
                     help_text=
                     'The groups this user belongs to. A user will get all permissions granted to each of their groups.',
                     related_name='user_set',
                     related_query_name='user',
                     to='auth.Group',
                     verbose_name='groups')),
                ('height_confirmed',
                 models.ForeignKey(
                     null=True,
                     on_delete=django.db.models.deletion.DO_NOTHING,
                     to='Poll.heightconfirmed')),
                ('height_control',
                 models.ManyToManyField(to='Poll.HeightControl')),
                ('manager',
                 models.OneToOneField(
                     blank=True,
                     null=True,
                     on_delete=django.db.models.deletion.CASCADE,
                     to='Home.businessmanager')),
                ('manufacture',
                 models.ManyToManyField(blank=True,
                                        to='Poll.ManufactureProcess')),
                ('process', models.ManyToManyField(to='Poll.ProcessBusiness')),
                ('risk_management',
                 models.ForeignKey(
                     null=True,
                     on_delete=django.db.models.deletion.DO_NOTHING,
                     to='Poll.riskmanagement')),
                ('risk_prevent',
                 models.ForeignKey(
                     null=True,
                     on_delete=django.db.models.deletion.DO_NOTHING,
                     to='Poll.riskpreventionpersonal')),
                ('sales',
                 models.ForeignKey(null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to='Poll.sales')),
                ('substance_confirmed',
                 models.ForeignKey(
                     null=True,
                     on_delete=django.db.models.deletion.DO_NOTHING,
                     to='Poll.substanceconfirmed')),
                ('substance_control',
                 models.ManyToManyField(to='Poll.SubstanceControl')),
                ('town',
                 models.ForeignKey(
                     null=True,
                     on_delete=django.db.models.deletion.DO_NOTHING,
                     to='Home.town')),
                ('transport',
                 models.ManyToManyField(blank=True,
                                        to='Poll.TransportProcess')),
                ('user_permissions',
                 models.ManyToManyField(
                     blank=True,
                     help_text='Specific permissions for this user.',
                     related_name='user_set',
                     related_query_name='user',
                     to='auth.Permission',
                     verbose_name='user permissions')),
            ],
            options={
                'verbose_name': 'Usuario',
                'verbose_name_plural': 'Usuarios',
            },
            managers=[
                ('objects', Home.models.UserGuiarManager()),
            ],
        ),
    ]
Пример #7
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0009_alter_user_last_name_max_length'),
    ]

    operations = [
        migrations.CreateModel(
            name='attendance',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=64)),
                ('roll', models.IntegerField()),
                ('date', models.DateField(validators=[Home.models.date_valid])),
            ],
            options={
                'ordering': ['-date', 'roll'],
            },
        ),
        migrations.CreateModel(
            name='attendanceclass',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('date', models.DateField(blank=True)),
                ('status', models.IntegerField(default=0)),
            ],
        ),
        migrations.CreateModel(
            name='student',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=30)),
                ('roll', models.IntegerField()),
            ],
            options={
                'ordering': ['roll'],
            },
        ),
        migrations.CreateModel(
            name='subject',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('sub', models.CharField(max_length=64)),
            ],
        ),
        migrations.CreateModel(
            name='time',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('time', models.CharField(max_length=64)),
                ('sub', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Home.subject')),
            ],
        ),
        migrations.CreateModel(
            name='user_type',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('is_principle', models.BooleanField(default=False)),
                ('is_hod', models.BooleanField(default=False)),
                ('is_teacher', models.BooleanField(default=False)),
                ('is_student', models.BooleanField(default=True)),
            ],
        ),
        migrations.CreateModel(
            name='User',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('password', models.CharField(max_length=128, verbose_name='password')),
                ('email', models.EmailField(max_length=254, unique=True)),
                ('name', models.CharField(blank=True, max_length=254, null=True)),
                ('is_staff', models.BooleanField(default=False)),
                ('is_superuser', models.BooleanField(default=False)),
                ('is_active', models.BooleanField(default=True)),
                ('last_login', models.DateTimeField(blank=True, null=True)),
                ('date_joined', models.DateTimeField(auto_now_add=True)),
                ('groups', models.ManyToManyField(blank=True, help_text='The groups this user belongs to. A user will get all permissions granted to each of their groups.', related_name='user_set', related_query_name='user', to='auth.Group', verbose_name='groups')),
                ('user_permissions', models.ManyToManyField(blank=True, help_text='Specific permissions for this user.', related_name='user_set', related_query_name='user', to='auth.Permission', verbose_name='user permissions')),
            ],
            options={
                'abstract': False,
            },
        ),
        migrations.AddField(
            model_name='user_type',
            name='user',
            field=models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='attendance',
            name='sub',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='Home.subject'),
        ),
    ]
Пример #8
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Admission',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('first_name', models.CharField(max_length=50, verbose_name='First Name')),
                ('last_name', models.CharField(max_length=50, verbose_name='Last Name')),
                ('Class', models.CharField(choices=[('six', 'VI'), ('nine', 'IX')], default='VI', max_length=100, verbose_name='Sought Admission in')),
                ('medium', models.CharField(choices=[('Bangla', 'Bangla'), ('English', 'English')], default='Bangla', max_length=100, verbose_name='Medium')),
                ('gender', models.CharField(choices=[('M', 'Male'), ('F', 'Female')], default='Male', max_length=20, verbose_name='Gender')),
                ('height', models.FloatField(default='5.3', verbose_name='Height')),
                ('weight', models.FloatField(default='45.2', verbose_name='Weight')),
                ('blood', models.CharField(choices=[('A+', 'A+'), ('A-', 'A-'), ('B-', 'B-'), ('AB-', 'AB-'), ('AB+', 'AB+'), ('O+', 'O+'), ('O-', 'O-')], default='A+', max_length=20, verbose_name='Blood Group')),
                ('dob', models.DateField(default=datetime.date.today, verbose_name='Date of Birth')),
                ('religion', models.CharField(choices=[('islam', 'Islam'), ('hindu', 'Hinduism'), ('buddha', 'Buddhaism'), ('christian', 'Christian'), ('other', 'Other')], default='Islam', max_length=100, verbose_name='Religion')),
                ('father_first_name', models.CharField(max_length=50, verbose_name='Father Name (First)')),
                ('father_last_name', models.CharField(max_length=50, verbose_name='Father Name (Last)')),
                ('fathers_qualification', models.CharField(choices=[('ssc', 'SSC'), ('hsc', 'HSC'), ('honors', 'Honors'), ('masters', 'Masters'), ('others', 'Others')], default='SSC', max_length=100, verbose_name='Fathers (Qualification)')),
                ('father_occupation', models.CharField(max_length=50, verbose_name='Occupation')),
                ('father_phone', models.CharField(max_length=50, verbose_name='Mobile')),
                ('mother_first_name', models.CharField(max_length=50, verbose_name='Mother Name (Frist)')),
                ('mother_last_name', models.CharField(max_length=50, verbose_name='Mother Name (Last)')),
                ('mohers_qualification', models.CharField(choices=[('ssc', 'SSC'), ('hsc', 'HSC'), ('honors', 'Honors'), ('masters', 'Masters'), ('others', 'Others')], default='SSC', max_length=100, verbose_name='Mothers (Qualification)')),
                ('mother_occupation', models.CharField(max_length=50, verbose_name='Occupation')),
                ('moher_phone', models.CharField(max_length=50, verbose_name='Mobile')),
                ('address', models.CharField(default='Uttara', max_length=200, verbose_name='Address')),
                ('last_class', models.CharField(choices=[('six', 'VI'), ('seven', 'VII'), ('eight', 'VIII'), ('nine', 'IX'), ('ten', 'X')], default='VI', max_length=100, verbose_name='Last Class Attended')),
                ('last_school', models.CharField(default='Milestone', max_length=100, verbose_name='Last School')),
                ('session', models.IntegerField(default=Home.models.current_date, verbose_name='Session')),
                ('approved', models.BooleanField(blank='True', default='False')),
            ],
        ),
    ]
Пример #9
0
class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='Carousel',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=50, null=True)),
            ],
        ),
        migrations.CreateModel(
            name='Category',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=50)),
                ('is_active', models.BooleanField(default=True)),
                ('created_date', models.DateField()),
                ('logo',
                 models.ImageField(upload_to=Home.models.category_icon_path)),
                ('rank', models.PositiveIntegerField(null=True)),
            ],
        ),
        migrations.CreateModel(
            name='ContactInfo',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
                ('number', models.BigIntegerField()),
                ('email', models.EmailField(max_length=254)),
                ('address', models.CharField(max_length=500)),
            ],
        ),
        migrations.CreateModel(
            name='DayHit',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('hits', models.IntegerField(default=0)),
                ('date', models.DateField()),
            ],
        ),
        migrations.CreateModel(
            name='Log',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('time_stamp', models.DateTimeField()),
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='Project',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
                ('description',
                 models.CharField(blank=True, max_length=500, null=True)),
                ('media',
                 models.FileField(blank=True,
                                  default=None,
                                  upload_to=Home.models.project_media_path)),
                ('media_type', models.BooleanField(default=0)),
                ('youtube_url', models.URLField(blank=True, null=True)),
                ('category',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='Home.Category')),
            ],
        ),
        migrations.CreateModel(
            name='Query',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('first_name', models.CharField(max_length=100, null=True)),
                ('last_name', models.CharField(max_length=100, null=True)),
                ('email', models.EmailField(max_length=254)),
                ('subject', models.CharField(max_length=100)),
                ('description', models.CharField(max_length=500)),
            ],
        ),
        migrations.CreateModel(
            name='SiteDetail',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('total_hits', models.BigIntegerField(default=0)),
            ],
        ),
    ]
Пример #10
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='Exhibition',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('exhibition_title', models.CharField(max_length=200)),
                ('location', models.CharField(max_length=150)),
                ('description', models.TextField()),
                ('created_date', models.DateTimeField(auto_now_add=True)),
            ],
        ),
        migrations.CreateModel(
            name='Exhibition_Images',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('image_title', models.CharField(default='img',
                                                 max_length=100)),
                ('images',
                 models.ImageField(blank=True,
                                   null=True,
                                   upload_to=Home.models.get_exhib_folder)),
            ],
        ),
        migrations.CreateModel(
            name='Function_Images',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('image_title', models.CharField(default='img',
                                                 max_length=100)),
                ('images',
                 models.ImageField(blank=True,
                                   null=True,
                                   upload_to=Home.models.get_func_folder)),
            ],
        ),
        migrations.CreateModel(
            name='Functions',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('function_title', models.CharField(max_length=200)),
                ('location', models.CharField(max_length=150)),
                ('description', models.TextField()),
                ('created_date', models.DateTimeField(auto_now_add=True)),
            ],
        ),
        migrations.CreateModel(
            name='Project',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('project_title', models.CharField(max_length=200)),
                ('location', models.CharField(max_length=150)),
                ('description', models.TextField()),
                ('created_date', models.DateTimeField(auto_now_add=True)),
            ],
        ),
        migrations.CreateModel(
            name='Project_Images',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('image_title', models.CharField(default='img',
                                                 max_length=100)),
                ('images',
                 models.ImageField(blank=True,
                                   null=True,
                                   upload_to=Home.models.get_image_filename)),
                ('project_name',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='Home.Project')),
            ],
        ),
        migrations.AddField(
            model_name='function_images',
            name='function_name',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='Home.Functions'),
        ),
        migrations.AddField(
            model_name='exhibition_images',
            name='exhibition_name',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='Home.Project'),
        ),
    ]