Example #1
0
class Migration(migrations.Migration):

    dependencies = [
        ('app', '0017_auto_20200918_0831'),
    ]

    operations = [
        migrations.AddField(
            model_name='sshtunnel_configs',
            name='DNS_NAME_SERVER',
            field=models.CharField(default='', max_length=220),
        ),
        migrations.AddField(
            model_name='sshtunnel_configs',
            name='FULL_PATH_SSH_KEY',
            field=models.CharField(default='', max_length=220),
        ),
        migrations.AddField(
            model_name='sshtunnel_configs',
            name='LOCAL_PORT',
            field=models.IntegerField(default=0,
                                      validators=[app.models.validate_flag]),
        ),
        migrations.AddField(
            model_name='sshtunnel_configs',
            name='REMOTE_PORT',
            field=models.IntegerField(default=0,
                                      validators=[app.models.validate_flag]),
        ),
        migrations.AddField(
            model_name='sshtunnel_configs',
            name='USER_SERVER',
            field=models.CharField(default='', max_length=64),
        ),
    ]
Example #2
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Topic',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('topic', models.CharField(max_length=100, unique=True)),
                ('created', models.DateTimeField(auto_now_add=True)),
                ('slug', models.SlugField(blank=True, max_length=100, null=True, unique=True)),
            ],
        ),
        migrations.CreateModel(
            name='Question',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=650)),
                ('sound', models.FileField(blank=True, null=True, upload_to=app.models.content_file_name)),
                ('topic', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='question', to='app.topic')),
            ],
        ),
    ]
Example #3
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0011_update_proxy_permissions'),
    ]

    operations = [
        migrations.CreateModel(
            name='user',
            fields=[
                ('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')),
                ('email', models.CharField(max_length=100, primary_key=True, serialize=False)),
                ('full_name', models.CharField(blank=True, max_length=160)),
                ('mobile_number', models.CharField(blank=True, max_length=13)),
                ('is_admin', models.BooleanField(default=False)),
                ('is_login', models.BooleanField(default=False)),
                ('is_active', models.BooleanField(default=True)),
                ('date_joined', models.DateTimeField(default=django.utils.timezone.now)),
                ('user_photo', models.ImageField(blank=True, upload_to=app.models.user_directory_path)),
                ('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')),
                ('kadiv', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
                ('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,
            },
        ),
    ]
Example #4
0
class Migration(migrations.Migration):

    dependencies = [
        ('app', '0004_auto_20171212_1822'),
    ]

    operations = [
        migrations.AlterField(
            model_name='student',
            name='netid',
            field=models.CharField(max_length=7,
                                   unique=True,
                                   validators=[
                                       django.core.validators.RegexValidator(
                                           regex=b'^[a-zA-Z]+[0-9]+')
                                   ]),
        ),
        migrations.AlterField(
            model_name='student',
            name='unique_id',
            field=models.CharField(max_length=7,
                                   unique=True,
                                   validators=[app.models.validate_unique_id]),
        ),
    ]
Example #5
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='Account',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('balance',
                 models.DecimalField(decimal_places=2,
                                     default=0,
                                     max_digits=12)),
            ],
        ),
        migrations.CreateModel(
            name='Action',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('amount', models.DecimalField(decimal_places=2,
                                               max_digits=12)),
                ('date', models.DateTimeField(auto_now_add=True)),
            ],
        ),
        migrations.CreateModel(
            name='Customer',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('first_name', models.CharField(max_length=255)),
                ('last_name', models.CharField(max_length=255)),
                ('passport',
                 models.CharField(
                     max_length=10,
                     validators=[
                         django.core.validators.RegexValidator(
                             '^[0-9a-zA-Z]*$',
                             'Only alphanumeric characters are allowed.')
                     ])),
                ('city', models.CharField(max_length=255)),
                ('house', models.CharField(max_length=255)),
                ('photo',
                 models.ImageField(null=True,
                                   upload_to=app.models.customer_photo)),
            ],
        ),
    ]
Example #6
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='Video',
            fields=[
                ('key',
                 models.UUIDField(default=uuid.uuid4,
                                  editable=False,
                                  primary_key=True,
                                  serialize=False)),
                ('name', models.CharField(max_length=255)),
                ('file_1080p', models.CharField(max_length=255, null=True)),
                ('file_720p', models.CharField(max_length=255, null=True)),
                ('file_watermark', models.CharField(max_length=255,
                                                    null=True)),
                ('file',
                 models.FileField(
                     upload_to=app.models.Video.upload_video_dir)),
            ],
        ),
    ]
Example #7
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='Member',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
                ('nickname',
                 models.CharField(
                     max_length=100,
                     validators=[
                         django.core.validators.MinLengthValidator(
                             5, '5文字以上です!'),
                         django.core.validators.RegexValidator(
                             '^[a-zA-Z0-9]*$', '英数字のみです!')
                     ])),
                ('age',
                 models.IntegerField(default=0,
                                     validators=[app.models.check_age])),
            ],
        ),
    ]
Example #8
0
class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='DRModel',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=40, unique=True)),
                ('date_added', models.DateTimeField(default=datetime.datetime.now)),
                ('model_type', models.PositiveIntegerField()),
                ('author', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='TestImage',
            fields=[
                ('name', models.CharField(max_length=100, primary_key=True, serialize=False, unique=True)),
                ('image', models.ImageField(upload_to=app.models.f)),
                ('pred_class', models.PositiveIntegerField()),
                ('preds', models.CharField(max_length=255, null=True)),
                ('uploaded_at', models.DateTimeField(default=datetime.datetime.now)),
                ('real_label', models.PositiveIntegerField()),
                ('eye_orientation', models.CharField(choices=[('L', 'LEFT'), ('R', 'RIGHT')], default=None, max_length=1, null=True)),
                ('author', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
Example #9
0
class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='App',
            fields=[
                ('id',
                 models.UUIDField(default=uuid.uuid4,
                                  editable=False,
                                  primary_key=True,
                                  serialize=False)),
                ('nom', models.CharField(default='', max_length=100)),
                ('lien', models.CharField(default='', max_length=100)),
                ('avatar',
                 models.ImageField(blank=True,
                                   null=True,
                                   upload_to=app.models.upload_path,
                                   verbose_name='avatar')),
                ('create_at', models.DateTimeField(auto_now_add=True)),
                ('modify_at', models.DateTimeField(auto_now=True)),
                ('domaines', models.ManyToManyField(to='domaine.Domaine')),
            ],
            options={
                'ordering': ['create_at'],
            },
        ),
    ]
Example #10
0
class Migration(migrations.Migration):

    initial = True

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

    operations = [
        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')),
                ('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')),
                ('email', models.EmailField(max_length=254, unique=True, verbose_name='email address')),
                ('first_name', models.CharField(blank=True, max_length=30, verbose_name='first name')),
                ('last_name', models.CharField(blank=True, max_length=150, verbose_name='last name')),
                ('is_staff', models.BooleanField(default=False, help_text='Designates whether the user can log into this admin site.', verbose_name='staff status')),
                ('is_active', models.BooleanField(default=True, help_text='Designates whether this user should be treated as active. Unselect this instead of deleting accounts.', verbose_name='active')),
                ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')),
                ('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={
                'verbose_name': 'user',
                'verbose_name_plural': 'users',
            },
            managers=[
                ('objects', app.models.UserManager()),
            ],
        ),
    ]
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='HourlyData',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=20)),
                ('lat', models.FloatField()),
                ('lon', models.FloatField()),
                ('timezone', models.CharField(max_length=25)),
                ('timezone_offset', models.IntegerField()),
                ('current',
                 djongo.models.fields.EmbeddedField(
                     model_container=app.models.WeatherData)),
                ('hourly',
                 djongo.models.fields.ArrayField(
                     model_container=app.models.WeatherData)),
            ],
        ),
    ]
Example #12
0
class Migration(migrations.Migration):

    dependencies = [
        ('app', '0012_user_id_ctfd'),
    ]

    operations = [
        migrations.CreateModel(
            name='CTFd_configs',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('url_API', models.CharField(max_length=220)),
                ('token_API', models.CharField(max_length=64)),
                ('port_API', models.IntegerField(default=8000, validators=[app.models.validate_flag])),
            ],
        ),
        migrations.AddField(
            model_name='lab',
            name='categoria',
            field=models.CharField(default='', max_length=120),
        ),
        migrations.AddField(
            model_name='lab',
            name='flag',
            field=models.CharField(default='', max_length=220),
        ),
        migrations.AddField(
            model_name='lab',
            name='valore_flag',
            field=models.IntegerField(default=10, validators=[app.models.validate_flag]),
        ),
    ]
Example #13
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='Students',
            fields=[
                ('id',
                 models.UUIDField(default=uuid.uuid4,
                                  primary_key=True,
                                  serialize=False)),
                ('name', models.CharField(max_length=200)),
                ('fname', models.CharField(max_length=200)),
                ('last_name', models.CharField(max_length=200)),
                ('date_of_birth', models.DateField()),
                ('email', models.EmailField(max_length=254, unique=True)),
                ('image',
                 models.ImageField(blank=True,
                                   upload_to=app.models.overwrite)),
                ('created_at', models.DateTimeField(auto_now=True)),
            ],
            options={
                'ordering': ['created_at'],
            },
        ),
    ]
Example #14
0
class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='Profile',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('Email', models.CharField(max_length=40, unique=True)),
                ('genero',
                 models.CharField(default='Não Identificado', max_length=40)),
                ('Avatar', models.FileField(upload_to=app.models.fnc)),
                ('N_seguidores', models.IntegerField(default=0)),
                ('N_seguindo', models.IntegerField(default=0)),
                ('user',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     related_name='profile',
                     to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
Example #15
0
class ContactUsModel(models.Model):
    """Contact Us Model for the site by User"""
    email = models.EmailField("Email",
                              max_length=50,
                              blank=True,
                              validators=[EMAILREGEX])
    first_name = models.CharField("First Name",
                                  max_length=40,
                                  validators=[NAMEREGEX],
                                  blank=True)
    last_name = models.CharField("Last Name",
                                 max_length=40,
                                 validators=[NAMEREGEX],
                                 blank=True,
                                 null=True)
    mobile_number = models.CharField("Mobile Number",
                                     max_length=16,
                                     blank=False,
                                     validators=[MOBILEREGEX])
    message = RichTextField("message", blank=False)

    def __str__(self):
        return email

    class Meta:
        verbose_name_plural = "Post Contact Us"
Example #16
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Ingredient',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
                ('units', models.CharField(max_length=10)),
                ('amount', models.CharField(max_length=10)),
            ],
        ),
        migrations.CreateModel(
            name='Recipe',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
                ('instructions', models.TextField()),
                ('ingredients', djongo.models.fields.ArrayModelField(model_container=app.models.Ingredient)),
            ],
        ),
        migrations.CreateModel(
            name='Tag',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('name', models.CharField(max_length=100)),
            ],
        ),
    ]
Example #17
0
class Migration(migrations.Migration):

    dependencies = [
        ('app', '0004_auto_20180815_1632'),
    ]

    operations = [
        migrations.AddField(
            model_name='audio',
            name='format',
            field=models.CharField(choices=[('mp3', 'mp3'), ('wav', 'wav'), ('flac', 'flac'), ('ogg', 'ogg')], default='mp3', max_length=16, verbose_name='Formato'),
            preserve_default=False,
        ),
        migrations.AlterField(
            model_name='audio',
            name='audio_file',
            field=models.FileField(null=True, upload_to=app.models.fileName),
        ),
        migrations.AlterField(
            model_name='audio',
            name='created_by',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='audios', to=settings.AUTH_USER_MODEL),
        ),
        migrations.AlterField(
            model_name='audio',
            name='text',
            field=models.CharField(max_length=512, verbose_name='Texto'),
        ),
    ]
Example #18
0
class Migration(migrations.Migration):

    dependencies = [
        ('app', '0003_auto_20180730_1205'),
    ]

    operations = [
        migrations.AlterField(
            model_name='point',
            name='audioFile',
            field=models.FileField(blank=True,
                                   null=True,
                                   unique=True,
                                   upload_to=app.models.audioFileLocation),
        ),
        migrations.AlterField(
            model_name='point',
            name='description',
            field=models.CharField(max_length=1000, null=True, unique=True),
        ),
        migrations.AlterField(
            model_name='point',
            name='name',
            field=models.CharField(max_length=255, null=True, unique=True),
        ),
    ]
Example #19
0
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='Book',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(max_length=50)),
                ('custom_dir_name',
                 models.CharField(blank=True, max_length=50, null=True)),
                ('file',
                 models.FileField(blank=True,
                                  null=True,
                                  upload_to=app.models.user_directory_path)),
            ],
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('app', '0002_auto_20160922_2239'),
    ]

    operations = [
        migrations.AddField(
            model_name='initiative',
            name='image',
            field=models.ImageField(
                null=True,
                upload_to=app.models.PathAndRename('img/initiative_events/')),
        ),
        migrations.AlterField(
            model_name='initiative',
            name='title',
            field=models.CharField(max_length=100, unique=True),
        ),
        migrations.AlterField(
            model_name='initiative',
            name='title_pt',
            field=models.CharField(max_length=100, unique=True),
        ),
    ]
class Migration(migrations.Migration):

    initial = True

    dependencies = []

    operations = [
        migrations.CreateModel(
            name='CustomerUser',
            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')),
                ('email', models.EmailField(max_length=100, unique=True)),
                ('full_name', models.CharField(max_length=50, null=True)),
                ('is_moderator', models.BooleanField(default=False)),
                ('is_staff', models.BooleanField(default=False)),
            ],
            options={
                'abstract': False,
            },
            managers=[
                ('objects', app.models.UserManager()),
            ],
        ),
    ]
Example #22
0
class Migration(migrations.Migration):

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

    operations = [
        migrations.CreateModel(
            name='HotelImage',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('image',
                 models.ImageField(blank=True,
                                   null=True,
                                   upload_to=app.models.upload_path,
                                   verbose_name='Image')),
            ],
        ),
        migrations.AddField(
            model_name='hotel',
            name='city',
            field=models.CharField(default='tehran',
                                   max_length=255,
                                   verbose_name='City'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='hotel',
            name='country',
            field=models.CharField(default='iran',
                                   max_length=255,
                                   verbose_name='Country'),
            preserve_default=False,
        ),
        migrations.AddField(
            model_name='hotelimage',
            name='rel',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='app.Hotel',
                verbose_name='Hotel'),
        ),
        migrations.AddField(
            model_name='hotelimage',
            name='user',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to=settings.AUTH_USER_MODEL,
                verbose_name='User'),
        ),
    ]
class Migration(migrations.Migration):

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

    operations = [
        migrations.CreateModel(
            name='Provider',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=100,
                                          verbose_name='Name')),
                ('email', models.EmailField(max_length=254)),
                ('language',
                 models.CharField(choices=[('en_US', 'English'),
                                           ('pt_BR', 'Brazilian Portuguese')],
                                  max_length=5,
                                  verbose_name='Language')),
                ('currency',
                 models.CharField(choices=[('USD', 'Dollar'), ('BRL', 'Real')],
                                  max_length=3,
                                  verbose_name='Currency')),
                ('phone_number',
                 models.CharField(max_length=40, verbose_name='Phone number')),
            ],
        ),
        migrations.CreateModel(
            name='ServiceArea',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('name', models.CharField(max_length=100,
                                          verbose_name='Name')),
                ('price', models.FloatField(verbose_name='Price')),
                ('points',
                 django.contrib.postgres.fields.ArrayField(
                     base_field=app.models.PointField(
                         base_field=models.FloatField(), size=2),
                     size=None)),
                ('provider',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='service_areas',
                                   to='app.Provider')),
            ],
        ),
    ]
Example #24
0
class Migration(migrations.Migration):

    dependencies = [
        ('contenttypes', '0002_remove_content_type_name'),
        ('app', '0001_squashed_0004_auto_20200523_1457'),
    ]

    operations = [
        migrations.CreateModel(
            name='Notification',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('object_id', models.PositiveIntegerField()),
                ('time', models.DateTimeField()),
                ('job_id', models.CharField(max_length=30)),
                ('canceled', models.BooleanField(default=False)),
                ('notified', models.BooleanField(default=False)),
                ('content_type',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='contenttypes.ContentType')),
            ],
        ),
        migrations.CreateModel(
            name='ResourceCollection',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
            ],
            bases=(app.models.ActionMixin, models.Model),
        ),
        migrations.AlterField(
            model_name='telegramuser',
            name='first_name',
            field=models.CharField(max_length=30, null=True),
        ),
        migrations.AlterField(
            model_name='telegramuser',
            name='last_name',
            field=models.CharField(max_length=150, null=True),
        ),
        migrations.AlterField(
            model_name='telegramuser',
            name='link',
            field=models.CharField(max_length=100, null=True),
        ),
        migrations.DeleteModel(name='InfluenceCollection', ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('app', '0002_auto_20200429_1154'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='polozka',
            name='cover',
        ),
        migrations.AddField(
            model_name='polozka',
            name='cover',
            field=models.ImageField(blank=True,
                                    null=True,
                                    upload_to=app.models.cover_path,
                                    verbose_name='Cover'),
        ),
        migrations.AlterField(
            model_name='stat',
            name='name',
            field=models.CharField(help_text='Vložte prosím celý název státu.',
                                   max_length=100,
                                   unique=True,
                                   verbose_name='Název státu'),
        ),
        migrations.AlterField(
            model_name='zakaznik',
            name='first_name',
            field=models.CharField(max_length=100, verbose_name='Jméno'),
        ),
        migrations.AlterField(
            model_name='zakaznik',
            name='last_name',
            field=models.CharField(max_length=100, verbose_name='Příjmení'),
        ),
        migrations.AlterField(
            model_name='zakaznik',
            name='stat',
            field=models.ForeignKey(blank=True,
                                    on_delete=models.SET(''),
                                    to='app.Stat',
                                    verbose_name='Stát'),
        ),
        migrations.AlterField(
            model_name='zanr',
            name='name',
            field=models.CharField(max_length=100, unique=True),
        ),
        migrations.DeleteModel(name='Cover', ),
    ]
Example #26
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Album',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nome', models.CharField(max_length=100)),
                ('foto', models.ImageField(upload_to=app.models.get_album_path)),
                ('ano', models.IntegerField(validators=[django.core.validators.MinValueValidator(1899), django.core.validators.MaxValueValidator(2999)])),
            ],
        ),
        migrations.CreateModel(
            name='Artista',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nome', models.CharField(max_length=100)),
                ('foto', models.ImageField(upload_to=app.models.get_artista_path)),
            ],
        ),
        migrations.CreateModel(
            name='Categoria',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nome', models.CharField(max_length=100)),
            ],
        ),
        migrations.CreateModel(
            name='Musica',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('nome', models.CharField(max_length=100)),
                ('duracao', models.DurationField()),
                ('album', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='app.Album')),
            ],
        ),
        migrations.AddField(
            model_name='album',
            name='artista',
            field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='app.Artista'),
        ),
        migrations.AddField(
            model_name='album',
            name='categoria',
            field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='app.Categoria'),
        ),
    ]
Example #27
0
class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='Event',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('day',
                 models.DateField(help_text='Day of the event',
                                  verbose_name='Day of the event')),
                ('start_time',
                 models.TimeField(help_text='Starting time',
                                  verbose_name='Starting time')),
                ('end_time',
                 models.TimeField(help_text='Final time',
                                  verbose_name='Final time')),
                ('notes',
                 models.TextField(blank=True,
                                  help_text='Textual Notes',
                                  null=True,
                                  verbose_name='Textual Notes')),
                ('title', models.CharField(max_length=200)),
                ('type',
                 models.CharField(choices=[
                     (app.models.GameTypeChoice('Doppelspiel'), 'Doppelspiel'),
                     (app.models.GameTypeChoice('Einzelspiel'), 'Einzelspiel'),
                     (app.models.GameTypeChoice('Turnier'), 'Turnier'),
                     (app.models.GameTypeChoice('Event'), 'Event')
                 ],
                                  max_length=5)),
                ('number', models.PositiveSmallIntegerField()),
                ('players',
                 models.ManyToManyField(to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'verbose_name': 'Scheduling',
                'verbose_name_plural': 'Scheduling',
            },
        ),
    ]
Example #28
0
class Migration(migrations.Migration):

    initial = True

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

    operations = [
        migrations.CreateModel(
            name='Attachment',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('filename', models.CharField(max_length=100)),
                ('file', models.FileField(upload_to=app.models.upload_path)),
                ('created_at',
                 models.DateTimeField(default=django.utils.timezone.now)),
            ],
        ),
        migrations.CreateModel(
            name='Todo',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('title', models.CharField(max_length=100)),
                ('description', models.TextField()),
                ('created_at',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('owner',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='todos',
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.AddField(
            model_name='attachment',
            name='todo',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                related_name='attachments',
                to='app.Todo'),
        ),
    ]
Example #29
0
class Migration(migrations.Migration):

    dependencies = [
        ('app', '0002_review_title'),
    ]

    operations = [
        migrations.CreateModel(
            name='CarsReviews',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('car',
                 models.CharField(max_length=64,
                                  verbose_name=app.models.Review)),
            ],
        ),
        migrations.AlterField(
            model_name='car',
            name='brand',
            field=models.CharField(max_length=50, verbose_name='Марка'),
        ),
        migrations.AlterField(
            model_name='car',
            name='model',
            field=models.CharField(max_length=50, verbose_name='Модель'),
        ),
        migrations.AlterField(
            model_name='review',
            name='car',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='app.Car',
                verbose_name='Машина'),
        ),
        migrations.AlterField(
            model_name='review',
            name='text',
            field=models.TextField(verbose_name='Обзор'),
        ),
        migrations.AlterField(
            model_name='review',
            name='title',
            field=models.CharField(max_length=100, verbose_name='Заголовок'),
        ),
    ]
Example #30
0
class JobManagement(models.Model):
    """Model Creation for posting job."""
    uuid = models.UUIDField(default=uuid.uuid4, editable=False)
    user = models.ForeignKey(MyUser,
                             on_delete=models.CASCADE,
                             related_name="company",
                             blank=True,
                             null=True)
    jobTitle = models.CharField("Job Title", max_length=100)
    jobDiscription = RichTextField("Job Description")
    requiredAnalytics = models.IntegerField("Number of Employee",
                                            blank=True,
                                            null=True)
    approved_employee = models.IntegerField("Number of approvd employee",
                                            default=0)
    TYPE_OF_PROJECT = (("One Time Project", "One Time Project"),
                       ("On going Project", "On going Project"),
                       ("To be decided", "To be decided"))
    type_of_project = models.CharField("What type of project you have?",
                                       default="One Time Project",
                                       max_length=50,
                                       choices=TYPE_OF_PROJECT)
    PAYMENT = (("Pay by Hour", "Pay by Hour"), ("Pay by Fixed Price",
                                                "Pay by Fixed Price"))
    payment = models.CharField("How would you like to pay?",
                               default="Pay by Hour",
                               max_length=50,
                               choices=PAYMENT)
    DURATION_PROJECT = (
        ("0-3", "0-3"),
        ("3-6", "3-6"),
        ("6-12", "6-12"),
        ("12+", "12+"),
    )
    desiredSalary = models.ForeignKey(Salary,
                                      on_delete=models.CASCADE,
                                      related_name="salary_per_hour",
                                      blank=True,
                                      null=True)
    duration = models.CharField("Month",
                                max_length=10,
                                default="0-3",
                                choices=DURATION_PROJECT)

    is_active = models.BooleanField(default=True)
    created_at = models.DateTimeField("Created Date", auto_now_add=True)

    def __str__(self):
        return self.jobTitle