class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='Contact',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(max_length=100)),
                ('subtitle', models.CharField(blank=True, max_length=100)),
                ('content', models.TextField(blank=True)),
                ('created',
                 models.DateTimeField(auto_now_add=True,
                                      verbose_name='Creado')),
                ('updated',
                 models.DateTimeField(auto_now=True,
                                      verbose_name='Actualizado')),
            ],
            options={
                'verbose_name': 'Página de contacto',
                'verbose_name_plural': 'Página de contacto',
            },
        ),
        migrations.CreateModel(
            name='Cover',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('image',
                 models.ImageField(upload_to=contact.models.custom_upload_to,
                                   verbose_name='Imagen')),
                ('header',
                 models.CharField(blank=True,
                                  max_length=150,
                                  verbose_name='Encabezado del cover')),
                ('paragraph',
                 models.TextField(blank=True,
                                  verbose_name='Párrafor del cover')),
                ('created',
                 models.DateTimeField(auto_now_add=True,
                                      verbose_name='Creado')),
                ('updated',
                 models.DateTimeField(auto_now=True,
                                      verbose_name='Actualizado')),
            ],
            options={
                'verbose_name_plural': 'Cover',
            },
        ),
    ]
class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='NormalContact',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=32)),
                ('email', models.EmailField(max_length=254)),
                ('message', models.TextField(default='I want to work with you. Possible?')),
                ('timestamp', models.DateTimeField(auto_now_add=True)),
            ],
        ),
        migrations.CreateModel(
            name='SocialContact',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=20)),
                ('link', models.CharField(max_length=120)),
                ('description', models.CharField(max_length=255)),
                ('icon', models.FileField(upload_to=contact.models.social_contact_icon_path)),
                ('position', models.IntegerField(default='1')),
                ('active', models.BooleanField(default=True)),
                ('timestamp', models.DateTimeField(auto_now_add=True)),
            ],
            options={
                'ordering': ['position', '-timestamp'],
            },
        ),
    ]
Example #3
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='HireContact',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=32)),
                ('email', models.EmailField(max_length=254)),
                ('website', models.CharField(blank=True, max_length=120, null=True)),
                ('project_budget', models.CharField(max_length=120)),
                ('completion_date', models.CharField(blank=True, choices=[('As soon as posible', 'As soon as posible'), ('In 7 days', 'In 7 days'), ('In 15 days', 'In 15 days'), ('In 30 days', 'In 30 days'), ('Not sure/To be determined/Talk you later', 'Not sure/To be determined/Talk you later')], default='Not sure/To be determined/Talk you later', max_length=32, null=True)),
                ('project_detail', models.TextField()),
                ('timestamp', models.DateTimeField(auto_now_add=True)),
            ],
        ),
        migrations.CreateModel(
            name='NormalContact',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=32)),
                ('email', models.EmailField(max_length=254)),
                ('message', models.TextField(default='I want to work with you. Possible?')),
                ('timestamp', models.DateTimeField(auto_now_add=True)),
            ],
        ),
        migrations.CreateModel(
            name='SocialContact',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=20)),
                ('link', models.CharField(max_length=120)),
                ('description', models.CharField(max_length=255)),
                ('icon', models.FileField(upload_to=contact.models.social_contact_icon_path)),
                ('position', models.IntegerField(default='1')),
                ('active', models.BooleanField(default=True)),
                ('timestamp', models.DateTimeField(auto_now_add=True)),
            ],
            options={
                'ordering': ['position', '-timestamp'],
            },
        ),
    ]
Example #4
0
class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('contact', '0017_pageusers_imgs'),
    ]

    operations = [
        migrations.CreateModel(
            name='Types',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=200)),
            ],
        ),
        migrations.CreateModel(
            name='Public',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(default='noname', max_length=200)),
                ('logo',
                 models.ImageField(upload_to=contact.models.photo_path)),
                ('desc', models.TextField(default='')),
                ('background',
                 models.ImageField(upload_to=contact.models.photo_path)),
                ('admins',
                 models.ManyToManyField(blank=True,
                                        related_name='admins',
                                        to=settings.AUTH_USER_MODEL)),
                ('imgs',
                 models.ManyToManyField(blank=True, to='contact.ImagesUser')),
                ('moders',
                 models.ManyToManyField(blank=True,
                                        related_name='moders',
                                        to=settings.AUTH_USER_MODEL)),
                ('posts', models.ManyToManyField(blank=True,
                                                 to='contact.Post')),
            ],
        ),
    ]
Example #5
0
class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='Contact',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('first_name', models.CharField(max_length=200)),
                ('last_name', models.CharField(max_length=200)),
                ('email', models.EmailField(max_length=254)),
                ('profil_picture',
                 models.ImageField(
                     upload_to=contact.models.content_file_name)),
                ('added_by',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name_plural': 'Contacts',
            },
        ),
    ]
Example #6
0
class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='Contact',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('user_type',
                 models.CharField(choices=[
                     ('user', '\uad6c\ub9e4\ud68c\uc6d0'),
                     ('seller', '\ud310\ub9e4\ud68c\uc6d0')
                 ],
                                  default='user',
                                  max_length=50)),
                ('title', models.CharField(max_length=255)),
                ('message', models.TextField()),
                ('response_message', models.TextField()),
                ('status', models.BooleanField(default=False)),
                ('file',
                 models.FileField(
                     blank=True,
                     null=True,
                     upload_to=contact.models.download_file_location)),
                ('timestamp', models.DateTimeField(auto_now_add=True)),
                ('order_num',
                 models.ForeignKey(blank=True,
                                   null=True,
                                   on_delete=django.db.models.deletion.CASCADE,
                                   to='billing.Order')),
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('contact', '0015_post_created_date'),
    ]

    operations = [
        migrations.CreateModel(
            name='ImagesUser',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(default='', max_length=200)),
                ('img',
                 models.ImageField(upload_to=contact.models.photo_path)),
            ],
        ),
    ]
Example #8
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('wagtailcore', '0033_remove_golive_expiry_help_text'),
    ]

    operations = [
        migrations.CreateModel(
            name='ContactFormSettings',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('recipients',
                 models.CharField(
                     help_text=
                     'A comma-separated list of email addresses to send contact form emails to',
                     max_length=256,
                     validators=[
                         contact.models.validate_comma_separated_email
                     ])),
                ('site',
                 models.OneToOneField(
                     editable=False,
                     on_delete=django.db.models.deletion.CASCADE,
                     to='wagtailcore.Site')),
            ],
            options={
                'abstract': False,
            },
        ),
    ]