class Migration(migrations.Migration): dependencies = [ ('ads', '0004_advertisement_comment'), ] operations = [ migrations.AddField( model_name='advertisement', name='fundingStep', field=models.CharField(choices=[('1', 'نقد و بررسی فنی'), ('2', 'جلسه ارزیابی اقتصادی'), ('3', 'معرفی به سرمایه گذار'), ('4', 'عقد قرارداد')], default=1, max_length=30, verbose_name='Step'), preserve_default=False, ), migrations.AlterField( model_name='adcategory', name='icon', field=models.ImageField(blank=True, upload_to=ads.models.AdCategory.CatImage_directory_path), ), migrations.AlterField( model_name='advertisement', name='images', field=models.ImageField(blank=True, upload_to=ads.models.Advertisement.AdImage_directory_path), ), migrations.AlterField( model_name='advertisement', name='proposal', field=models.FileField(blank=True, upload_to=ads.models.Advertisement.AdFile_directory_path), ), ]
class Migration(migrations.Migration): dependencies = [ ('ads', '0006_auto_20170806_1454'), ] operations = [ migrations.RenameField( model_name='ad', old_name='gallery', new_name='picture1', ), migrations.AddField( model_name='ad', name='picture2', field=models.ImageField( blank=True, default='', help_text='Ad Pictures', null=True, upload_to=ads.models.UploadToPathAndRename('pictures'), verbose_name='Ad Pictures'), ), migrations.AddField( model_name='ad', name='picture3', field=models.ImageField( blank=True, default='', help_text='Ad Pictures', null=True, upload_to=ads.models.UploadToPathAndRename('pictures'), verbose_name='Ad Pictures'), ), migrations.AddField( model_name='ad', name='picture4', field=models.ImageField( blank=True, default='', help_text='Ad Pictures', null=True, upload_to=ads.models.UploadToPathAndRename('pictures'), verbose_name='Ad Pictures'), ), migrations.AlterField( model_name='ad', name='mapcategory', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='ads.MCateg'), ), migrations.AlterField( model_name='ad', name='user', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), ]
class Migration(migrations.Migration): dependencies = [ ('ads', '0003_auto_20170724_2311'), ] operations = [ migrations.AlterField( model_name='ad', name='gallery', field=models.ImageField( blank=True, default='', help_text='Ad Pictures', null=True, upload_to=ads.models.UploadToPathAndRename('pictures'), verbose_name='Ad Pictures'), ), migrations.AlterField( model_name='user', name='last_login', field=models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined'), ), migrations.DeleteModel(name='Gallery', ), ]
class Migration(migrations.Migration): dependencies = [ ('ads', '0056_auto_20170919_0914'), ] operations = [ migrations.CreateModel( name='Slide', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=400, verbose_name='عنوان')), ('link', models.URLField(blank=True, null=True)), ('image', models.ImageField( blank=True, upload_to=ads.models.Slide.SlideImage_directory_path, verbose_name='تصویر')), ('content', ckeditor.fields.RichTextField(verbose_name='متن')), ], options={ 'verbose_name': 'اسلاید', 'verbose_name_plural': 'اسلایدها', }, ), ]
class Migration(migrations.Migration): dependencies = [ ('ads', '0005_auto_20161013_1135'), ] operations = [ migrations.AlterField( model_name='images', name='image', field=models.ImageField(null=True, upload_to=ads.models.get_image_filename, verbose_name='Image'), ), ]
class Migration(migrations.Migration): dependencies = [ ('ads', '0008_auto_20200723_1808'), ] operations = [ migrations.AlterField( model_name='adsimage', name='image', field=models.ImageField(null=True, upload_to=ads.models.path_and_rename, verbose_name='Изображение'), ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('ads', '0005_auto_20200531_1929'), ] operations = [ migrations.CreateModel( name='Images', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField(upload_to=ads.models.get_image_filename, verbose_name='Image')), ], ), migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=128)), ('body', models.CharField(max_length=400)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.RemoveField( model_name='photos', name='ad', ), migrations.DeleteModel(name='Ad', ), migrations.DeleteModel(name='Photos', ), migrations.AddField( model_name='images', name='post', field=models.ForeignKey( default=None, on_delete=django.db.models.deletion.CASCADE, to='ads.Post'), ), ]
class Migration(migrations.Migration): dependencies = [ ('ads', '0003_auto_20200531_1854'), ] operations = [ migrations.AlterField( model_name='photos', name='image', field=models.ImageField(upload_to=ads.models.get_image_filename, verbose_name='Image'), ), ]
class Migration(migrations.Migration): dependencies = [ ('ads', '0006_auto_20161013_1136'), ] operations = [ migrations.AlterField( model_name='ad', name='image', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ads.Images'), ), migrations.AlterField( model_name='images', name='image', field=models.ImageField(blank=True, null=True, upload_to=ads.models.get_image_filename, verbose_name='Image'), ), ]
class Migration(migrations.Migration): dependencies = [ ('ads', '0032_auto_20170815_2135'), ] operations = [ migrations.CreateModel( name='Investor', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(blank=True, max_length=40, null=True, verbose_name='عنوان')), ('logo', models.ImageField( blank=True, upload_to=ads.models.Investor.InvestorLogo_directory_path, verbose_name='لوگو')), ('isBig', models.BooleanField(default=False, verbose_name='سرمایه گذار بزرگ')), ('interest', models.ManyToManyField(to='ads.AdCategory')), ], ), migrations.AddField( model_name='advertisement', name='investor', field=models.ManyToManyField(blank=True, null=True, to='ads.Investor', verbose_name='سرمایه گذار'), ), ]
class Migration(migrations.Migration): dependencies = [ ('ads', '0001_initial'), ] operations = [ migrations.CreateModel( name='Images', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField(upload_to=ads.models.get_image_filename, verbose_name='Image')), ], options={ 'verbose_name': 'Image', 'verbose_name_plural': 'Images', }, ), migrations.RemoveField( model_name='ad', name='image', ), migrations.AddField( model_name='images', name='ad', field=models.ForeignKey( default=None, on_delete=django.db.models.deletion.CASCADE, to='ads.Ad'), ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('brands', '0002_delete_carmodel'), ('ads', '0006_auto_20200531_1954'), ] operations = [ migrations.CreateModel( name='Ad', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('car_model', models.CharField(max_length=200)), ('year', models.CharField(max_length=4)), ('equipment', models.CharField(max_length=200)), ('mileage', models.CharField(max_length=8)), ('capacity', models.CharField(max_length=5)), ('price', models.DecimalField(decimal_places=2, max_digits=10)), ('available', models.BooleanField(default=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('description', models.TextField()), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='author', to=settings.AUTH_USER_MODEL)), ('brand', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='brand', to='brands.Brand')), ], options={ 'verbose_name': 'Объявление', 'verbose_name_plural': 'Объявления', 'ordering': ('brand', ), }, ), migrations.CreateModel( name='Photos', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField(upload_to=ads.models.get_image_filename, verbose_name='Image')), ('ad', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='photos', to='ads.Ad')), ], ), migrations.RemoveField( model_name='post', name='user', ), migrations.DeleteModel(name='Images', ), migrations.DeleteModel(name='Post', ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0008_alter_user_username_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=30, 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')), ('location', models.CharField(max_length=50)), ('phone_number', models.CharField(max_length=15, validators=[django.core.validators.RegexValidator(message="Phone number must be entered in the format: '+999999999'. Up to 15 digits allowed.", regex='^\\+?1?\\d{9,15}$')])), ('user_created_at', 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={ 'verbose_name': 'user', 'verbose_name_plural': 'users', }, ), migrations.CreateModel( name='Ad', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=100)), ('price', models.FloatField(max_length=15)), ('currency', models.CharField(max_length=10)), ('condition', models.CharField(max_length=10)), ('description', models.CharField(max_length=3000)), ('view_count', models.IntegerField(blank=True, default=0, editable=False)), ('ad_created_at', models.DateTimeField(auto_now_add=True)), ], ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('category_name', models.CharField(max_length=100)), ], ), migrations.CreateModel( name='Gallery', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('picture1', models.ImageField(blank=True, help_text='Ad Picture', null=True, upload_to=ads.models.UploadToPathAndRename('pictures'), verbose_name='Ad Picture')), ('picture2', models.ImageField(blank=True, help_text='Ad Picture', null=True, upload_to=ads.models.UploadToPathAndRename('pictures'), verbose_name='Ad Picture')), ('picture3', models.ImageField(blank=True, help_text='Ad Picture', null=True, upload_to=ads.models.UploadToPathAndRename('pictures'), verbose_name='Ad Picture')), ('picture4', models.ImageField(blank=True, help_text='Ad Picture', null=True, upload_to=ads.models.UploadToPathAndRename('pictures'), verbose_name='Ad Picture')), ], ), migrations.CreateModel( name='MCateg', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ads.Category')), ], ), migrations.CreateModel( name='Message', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('content', models.CharField(max_length=3000)), ('read_time', models.DateTimeField(blank=True, null=True)), ('message_created_at', models.DateTimeField(auto_now_add=True)), ('message_receiver', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='ads_message_receivers', to=settings.AUTH_USER_MODEL)), ('message_sender', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='ads_message_senders', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Subcategory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('subcategory_name', models.CharField(max_length=100)), ], ), migrations.AddField( model_name='mcateg', name='subcategory', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ads.Subcategory'), ), migrations.AddField( model_name='ad', name='gallery', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ads.Gallery'), ), migrations.AddField( model_name='ad', name='mapcategory', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ads.MCateg'), ), migrations.AddField( model_name='ad', name='user', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Ad', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=255, verbose_name='Title')), ('image', models.ImageField(max_length=255, upload_to=b'', verbose_name='Image')), ('url', models.URLField(verbose_name='Advertised URL')), ('publication_date', models.DateTimeField(default=django.utils.timezone.now, verbose_name='Start showing')), ('publication_date_end', models.DateTimeField(default=ads.models.now_plus_1_day, verbose_name='Stop showing')), ('zone', models.CharField(max_length=100, verbose_name='Zone')), ('weight', models.IntegerField( default=1, help_text= 'Weight of the ad relative to other ads in the same zone.<br />Ad with higher weight will be displayed more frequently.', validators=[django.core.validators.MinValueValidator(1)], verbose_name='Weight')), ('created_at', models.DateTimeField(auto_now_add=True)), ('modified_at', models.DateTimeField(auto_now=True)), ], options={ 'verbose_name': 'Ad', 'verbose_name_plural': 'Ads', }, ), migrations.CreateModel( name='Advertiser', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('company_name', models.CharField(max_length=255, verbose_name='Company Name')), ('website', models.URLField(verbose_name='Company Site')), ('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='Created By')), ], options={ 'ordering': ('company_name', ), 'verbose_name': 'Advertiser', 'verbose_name_plural': 'Advertisers', }, ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=255, verbose_name='Title')), ('description', models.TextField(blank=True, verbose_name='Description')), ('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='Created By')), ], options={ 'ordering': ('title', ), 'verbose_name': 'Category', 'verbose_name_plural': 'Categories', }, ), migrations.CreateModel( name='Click', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('click_date', models.DateTimeField(auto_now_add=True, verbose_name='When')), ('source_ip', models.GenericIPAddressField( blank=True, null=True, verbose_name='Source IP Address')), ('session_id', models.CharField(blank=True, max_length=40, null=True, verbose_name='Source Session ID')), ('ad', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='clicks', to='ads.Ad', verbose_name='Ad')), ], options={ 'verbose_name': 'Ad Click', 'verbose_name_plural': 'Ad Clicks', }, ), migrations.CreateModel( name='Impression', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('impression_date', models.DateTimeField(auto_now_add=True, verbose_name='When')), ('source_ip', models.GenericIPAddressField( blank=True, null=True, verbose_name='Source IP Address')), ('session_id', models.CharField(blank=True, max_length=40, null=True, verbose_name='Source Session ID')), ('ad', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='impressions', to='ads.Ad', verbose_name='Ad')), ], options={ 'verbose_name': 'Ad Impression', 'verbose_name_plural': 'Ad Impressions', }, ), migrations.AddField( model_name='ad', name='advertiser', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='ads.Advertiser', verbose_name='Ad Provider'), ), migrations.AddField( model_name='ad', name='category', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='ads.Category', verbose_name='Category'), ), migrations.AddField( model_name='ad', name='created_by', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='Created By'), ), migrations.AlterIndexTogether( name='impression', index_together=set([('ad', 'session_id')]), ), migrations.AlterIndexTogether( name='click', index_together=set([('ad', 'session_id')]), ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('ads', '0003_accesspoint'), ] operations = [ migrations.CreateModel( name='Ad', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=255, verbose_name='Title')), ('url', models.URLField(verbose_name='Advertised URL')), ('publication_date', models.DateTimeField(default=django.utils.timezone.now, verbose_name='Start showing')), ('publication_date_end', models.DateTimeField(default=ads.models.now_plus_1_day, verbose_name='Stop showing')), ('zone', models.CharField(max_length=100, verbose_name='Zone')), ('weight', models.IntegerField( default=1, help_text= 'Weight of the ad relative to other ads in the same zone.<br />Ad with higher weight will be displayed more frequently.', validators=[django.core.validators.MinValueValidator(1)], verbose_name='Weight')), ('created_at', models.DateTimeField(auto_now_add=True)), ('modified_at', models.DateTimeField(auto_now=True)), ('advertiser', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ads.Advertiser', verbose_name='Ad Provider')), ('category', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='ads.Category', verbose_name='Category')), ('created_by', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='Created By')), ], options={ 'verbose_name': 'Ad', 'verbose_name_plural': 'Ads', }, ), migrations.CreateModel( name='AdImage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField(max_length=255, upload_to='ad-images', verbose_name='Image')), ('ad', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='images', to='ads.Ad', verbose_name='Ad')), ], ), ]