class Migration(migrations.Migration):

    dependencies = [
        ('Home', '0002_profile'),
    ]

    operations = [
        migrations.CreateModel(
            name='Help',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('query', models.TextField(default='')),
            ],
        ),
        migrations.AlterField(
            model_name='profile',
            name='img',
            field=models.ImageField(blank=True,
                                    null=True,
                                    upload_to=Home.models.upload_image_path),
        ),
    ]
Ejemplo n.º 2
0
class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='Post',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('likes', models.IntegerField(default=0)),
                ('content', models.TextField()),
                ('date_posted', models.DateTimeField(default=django.utils.timezone.now)),
                ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='HomeImages',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('pic', models.ImageField(null=True, upload_to='home_images')),
                ('post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='Home.post')),
            ],
        ),
    ]
Ejemplo n.º 3
0
class Migration(migrations.Migration):

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

    operations = [
        migrations.AlterModelOptions(
            name='Category',
            options={'ordering': ['position']},
        ),
        migrations.AddField(
            model_name='product',
            name='image',
            field=models.ImageField(null=True,
                                    upload_to=Home.models.product_media_path),
        ),
        migrations.AlterField(
            model_name='Category',
            name='thumbnail',
            field=models.ImageField(upload_to=Home.models.category_icon_path),
        ),
    ]
Ejemplo n.º 4
0
class Migration(migrations.Migration):

    dependencies = [
        ('Home', '0008_category_client_project'),
    ]

    operations = [
        migrations.AddField(
            model_name='project',
            name='slug',
            field=models.SlugField(blank=True, null=True),
        ),
        migrations.AlterField(
            model_name='profile',
            name='image',
            field=models.ImageField(upload_to=Home.models.Image_upload),
        ),
        migrations.AlterField(
            model_name='project',
            name='image',
            field=models.ImageField(upload_to=Home.models.Image_upload1),
        ),
    ]
Ejemplo n.º 5
0
class Migration(migrations.Migration):

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

    operations = [
        migrations.AddField(
            model_name='users',
            name='portrait',
            field=models.ImageField(
                default='images/default_portrait.jpg',
                upload_to=Home.models.user_portrait_upload_to),
        ),
    ]
Ejemplo n.º 6
0
class Migration(migrations.Migration):

    dependencies = [
        ('Home', '0004_auto_20191226_1651'),
    ]

    operations = [
        migrations.AlterField(
            model_name='product',
            name='image',
            field=models.ImageField(blank=True,
                                    null=True,
                                    upload_to=Home.models.upload_image_path),
        ),
    ]
Ejemplo n.º 7
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',
            },
        ),
    ]
Ejemplo n.º 8
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)),
            ],
        ),
    ]
Ejemplo n.º 9
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)),
            ],
        ),
    ]
Ejemplo n.º 10
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'),
        ),
    ]
Ejemplo n.º 11
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)),
            ],
        ),
    ]
Ejemplo n.º 12
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'),
        ),
    ]