class Migration(migrations.Migration): dependencies = [ ('ads', '0038_auto_20170821_0054'), ] operations = [ migrations.AlterField( model_name='advertisement', name='credits', field=models.CharField(blank=True, max_length=200, verbose_name='اعتبارات قانونی'), ), migrations.AlterField( model_name='advertisement', name='damage', field=models.CharField(blank=True, max_length=200, verbose_name='زیان\u200cدهی'), ), migrations.AlterField( model_name='advertisement', name='expected_gain', field=models.CharField(blank=True, max_length=5, null=True, verbose_name='سود پیش\u200cبینی شده'), ), migrations.AlterField( model_name='advertisement', name='expected_time', field=models.CharField(blank=True, max_length=5, null=True, verbose_name='زمان پیش\u200cبینی شده'), ), migrations.AlterField( model_name='advertisement', name='location', field=models.ForeignKey( null=True, on_delete=django.db.models.deletion.CASCADE, to='ads.State', verbose_name='استان'), ), migrations.AlterField( model_name='advertisement', name='proposal', field=models.FileField( blank=True, upload_to=ads.models.Advertisement.AdFile_directory_path, verbose_name='پروپوزال'), ), ]
class Migration(migrations.Migration): dependencies = [ ('ads', '0020_auto_20170808_0906'), ] operations = [ migrations.AlterField( model_name='advertisement', name='category', field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='ads.AdCategory', verbose_name='دسته بندی'), ), migrations.AlterField( model_name='advertisement', name='containInSlideshow', field=models.BooleanField(default=True, verbose_name='نمایش در اسلاید'), ), migrations.AlterField( model_name='advertisement', name='creator', field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='کاربر'), ), migrations.AlterField( model_name='advertisement', name='fund', field=models.CharField(max_length=50, null=True, verbose_name='مبلغ سرمایه'), ), migrations.AlterField( model_name='advertisement', name='fundingStep', field=models.CharField(blank=True, choices=[('0', 'نقد و بررسی'), ('1', 'جلسه ارزیابی اقتصادی'), ('2', 'معرفی به سرمایه گذار'), ('3', 'عقد قرارداد')], max_length=30, null=True, verbose_name='آخرین درخواست'), ), migrations.AlterField( model_name='advertisement', name='owner', field=models.CharField(max_length=30, null=True, verbose_name='صاحب طرح'), ), migrations.AlterField( model_name='advertisement', name='phone', field=models.CharField(max_length=30, null=True, verbose_name='شماره تماس'), ), migrations.AlterField( model_name='advertisement', name='review', field=models.FileField(blank=True, upload_to=ads.models.Advertisement.review_directory_path, verbose_name='فایل نقد'), ), migrations.AlterField( model_name='advertisement', name='summary', field=models.TextField(blank=True, 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', '0015_auto_20170807_2311'), ] operations = [ migrations.AddField( model_name='advertisement', name='review', field=models.FileField( blank=True, upload_to=ads.models.Advertisement.AdFile_directory_path), ), migrations.AlterField( model_name='advertisement', name='fundingStep', field=models.CharField(blank=True, choices=[('0', 'نقد و بررسی'), ('1', 'ارزیابی اقتصادی'), ('2', 'معرفی به سرمایه گذار'), ('3', 'عقد قرارداد')], max_length=30, null=True, verbose_name='آخرین '), ), ]
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', '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', '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 = [ 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 = [] operations = [ migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=20, null=True)), ('parent', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='ads.category', verbose_name='parent category')), ], options={ 'verbose_name_plural': 'Categories', }, ), migrations.CreateModel( name='Ad', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=30)), ('descr', models.CharField(max_length=100, verbose_name='decription')), ('phone_num', ads.models.PhoneNumberField( max_length=12, validators=[ads.models.PhoneNumberValidator], verbose_name='contact phone number')), ('pub_date', models.DateTimeField(auto_now=True, verbose_name='publication date')), ('price', models.DecimalField( decimal_places=2, max_digits=8, validators=[ django.core.validators.MinValueValidator(0.0) ])), ('category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ads.category', verbose_name="ad's category")), ], options={ 'ordering': ['pub_date'], }, ), migrations.AddIndex( model_name='ad', index=models.Index(fields=['pub_date'], name='pub_date_idx'), ), migrations.AddIndex( model_name='ad', index=models.Index(fields=['price'], name='price_idx'), ), ]
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): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Customer', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=200)), ], ), migrations.CreateModel( name='Discount', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('for_every_qty_items', models.IntegerField(blank=True, null=True)), ('free_items', models.IntegerField(blank=True, null=True)), ('fixed_discount', models.DecimalField(blank=True, decimal_places=2, max_digits=6, null=True)), ('min_qty_before_fixed_discount', models.IntegerField(blank=True, null=True)), ('customer', models.ManyToManyField(to='ads.Customer')), ], ), migrations.CreateModel( name='Order', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('order_ref', models.PositiveSmallIntegerField(default=1)), ('customer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ads.Customer')), ], bases=(ads.models.PricingRules, models.Model), ), migrations.CreateModel( name='OrderItem', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('order', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ads.Order')), ], ), migrations.CreateModel( name='Product', fields=[ ('id', models.CharField(max_length=200, primary_key=True, serialize=False)), ('name', models.CharField(max_length=200)), ('price', models.DecimalField(decimal_places=2, max_digits=6)), ], ), migrations.AddField( model_name='orderitem', name='product', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='ads.Product'), ), migrations.AddField( model_name='order', name='products', field=models.ManyToManyField(through='ads.OrderItem', to='ads.Product'), ), migrations.AddField( model_name='discount', name='product', field=models.ManyToManyField(to='ads.Product'), ), ]
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')), ], ), ]