class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='JobType', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=42)), ('name_en', models.CharField(max_length=42, null=True)), ('name_ru', models.CharField(max_length=42, null=True)), ('name_pl', models.CharField(max_length=42, null=True)), ('name_uk', models.CharField(max_length=42, null=True)), ('icon', models.CharField(max_length=15, null=True)), ], ), migrations.CreateModel( name='Job', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', django_extensions.db.fields.CreationDateTimeField( auto_now_add=True, verbose_name='created')), ('modified', django_extensions.db.fields.ModificationDateTimeField( auto_now=True, verbose_name='modified')), ('title', models.CharField(max_length=255, verbose_name='title')), ('description', models.TextField(blank=True, null=True, verbose_name='description')), ('slug', django_extensions.db.fields.AutoSlugField( blank=True, editable=False, populate_from='title', verbose_name='slug')), ('expires', models.DateField( blank=True, help_text='Format mm/dd/yyyy', null=True, validators=[apps.adverts.models.validate_expires], verbose_name='expires')), ('local', models.CharField(choices=[('en', 'en_US'), ('uk', 'uk_UA'), ('ru', 'ru_RU'), ('pl', 'pl_PL')], default='en', max_length=2)), ('city', models.CharField(default='Chicago', max_length=50, verbose_name='city')), ('address', models.CharField(blank=True, max_length=100, verbose_name='address')), ('point', django.contrib.gis.db.models.fields.PointField( blank=True, geography=True, null=True, srid=4326, verbose_name='map')), ('duration', models.CharField(choices=[('ft', 'full-time'), ('pt', 'part-time'), ('ca', 'casual')], default='ft', max_length=2)), ('countries', django_countries.fields.CountryField( default='EN', help_text='What language does the employer speak?', max_length=11, multiple=True, verbose_name='language')), ('image', sorl.thumbnail.fields.ImageField( blank=True, null=True, upload_to=apps.adverts.models.user_directory_path, verbose_name='Logo or image')), ('salary', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True, verbose_name='salary')), ('author', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='author')), ('favourites', models.ManyToManyField(blank=True, default=None, related_name='favourite_jobs', to=settings.AUTH_USER_MODEL)), ('jobtype', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='jobs.JobType', verbose_name='job type')), ], options={ 'ordering': ['modified'], 'abstract': False, }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='PropertyType', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=42)), ('name_en', models.CharField(max_length=42, null=True)), ('name_ru', models.CharField(max_length=42, null=True)), ('name_pl', models.CharField(max_length=42, null=True)), ('name_uk', models.CharField(max_length=42, null=True)), ], ), migrations.CreateModel( name='Rent', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', django_extensions.db.fields.CreationDateTimeField( auto_now_add=True, verbose_name='created')), ('modified', django_extensions.db.fields.ModificationDateTimeField( auto_now=True, verbose_name='modified')), ('title', models.CharField(max_length=255, verbose_name='title')), ('description', models.TextField(blank=True, null=True, verbose_name='description')), ('slug', django_extensions.db.fields.AutoSlugField( blank=True, editable=False, populate_from='title', verbose_name='slug')), ('expires', models.DateField( blank=True, help_text='Format mm/dd/yyyy', null=True, validators=[apps.adverts.models.validate_expires], verbose_name='expires')), ('local', models.CharField(choices=[('en', 'en_US'), ('uk', 'uk_UA'), ('ru', 'ru_RU'), ('pl', 'pl_PL')], default='en', max_length=2)), ('city', models.CharField(default='Chicago', max_length=50, verbose_name='city')), ('address', models.CharField(blank=True, max_length=100, verbose_name='address')), ('point', django.contrib.gis.db.models.fields.PointField( blank=True, geography=True, null=True, srid=4326, verbose_name='map')), ('image', models.ImageField( blank=True, null=True, upload_to=apps.adverts.models.user_directory_path)), ('bathrooms', models.PositiveSmallIntegerField(default=1)), ('bedrooms', models.PositiveSmallIntegerField(default=1)), ('price', models.PositiveIntegerField()), ('pet_policy', models.PositiveSmallIntegerField(choices=[(0, 'None'), (1, 'Dogs'), (2, 'Cats'), (3, 'Dogs and Cats'), (4, 'Any')], default=0)), ('furnished', models.BooleanField()), ('prefer_sex', models.CharField(choices=[('a', 'any'), ('w', 'woman'), ('m', 'man')], default='a', max_length=1)), ('author', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='author')), ('favourites', models.ManyToManyField(blank=True, default=None, related_name='favourite_rents', to=settings.AUTH_USER_MODEL)), ('property_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='rents.PropertyType', verbose_name='property type')), ], options={ 'ordering': ['modified'], 'abstract': False, }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Item', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', django_extensions.db.fields.CreationDateTimeField( auto_now_add=True, verbose_name='created')), ('modified', django_extensions.db.fields.ModificationDateTimeField( auto_now=True, verbose_name='modified')), ('title', models.CharField(max_length=255, verbose_name='title')), ('description', models.TextField(blank=True, null=True, verbose_name='description')), ('slug', django_extensions.db.fields.AutoSlugField( blank=True, editable=False, populate_from='title', verbose_name='slug')), ('expires', models.DateField( blank=True, help_text='Format mm/dd/yyyy', null=True, validators=[apps.adverts.models.validate_expires], verbose_name='expires')), ('local', models.CharField(choices=[('en', 'en_US'), ('uk', 'uk_UA'), ('ru', 'ru_RU'), ('pl', 'pl_PL')], default='en', max_length=2)), ('city', models.CharField(default='Chicago', max_length=50, verbose_name='city')), ('address', models.CharField(blank=True, max_length=100, verbose_name='address')), ('point', django.contrib.gis.db.models.fields.PointField( blank=True, geography=True, null=True, srid=4326, verbose_name='map')), ('condition', models.CharField(choices=[('0', 'Used'), ('1', 'Acceptable'), ('2', 'Very Good'), ('3', 'Like New'), ('4', 'New')], default='0', max_length=1, verbose_name='condition')), ('image', sorl.thumbnail.fields.ImageField( blank=True, null=True, upload_to=apps.adverts.models.user_directory_path)), ('price', models.DecimalField(decimal_places=2, max_digits=10, verbose_name='price')), ('author', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='author')), ('favourites', models.ManyToManyField(blank=True, default=None, related_name='favourite_items', to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['modified'], 'abstract': False, }, ), ]