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')), ('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')), ('date_joined', models.DateTimeField(default=django.utils.timezone.now, verbose_name='date joined')), ('email', models.EmailField(max_length=254, unique=True, verbose_name='email address')), ('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', 'abstract': False, 'verbose_name_plural': 'users', }, managers=[ ('objects', blog.models.UserManager()), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('profiles', '0001_initial'), ] operations = [ migrations.CreateModel( name='FileUpload', fields=[ ('upload_id', models.AutoField(primary_key=True, serialize=False)), ('title', models.CharField(max_length=255)), ('description', models.TextField(blank=True, null=True)), ('date_file_uploaded', models.DateTimeField(auto_now=True)), ('date_file_uploaded_updated', models.DateTimeField(auto_now_add=True)), ('file', models.FileField(upload_to=blog.models.user_directory_path)), ('profile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='profiles.Profile')), ], options={ 'db_table': 'at_file_uploads', }, ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('blog', '0005_auto_20170717_2233'), ] operations = [ migrations.CreateModel( name='UserProfile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', blog.formatChecker.ContentTypeRestrictedFileField( blank=True, null=True, upload_to=blog.models.user_profile_image)), ('total_uploads', models.BigIntegerField(default=0)), ('created', models.DateTimeField(editable=False)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('blog', '0002_auto_20180514_1036'), ] operations = [ migrations.CreateModel( name='ProfileImage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('alt_text', models.CharField(blank=True, max_length=255, null=True)), ('file', models.ImageField(upload_to=blog.models.profile_img_uh)), ('description', models.TextField(blank=True, null=True)), ], ), migrations.RemoveField( model_name='user', name='profile_img', ), migrations.AddField( model_name='profileimage', name='user', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='images', to=settings.AUTH_USER_MODEL), ), ]
class Migration(migrations.Migration): dependencies = [ ('blog', '0002_auto_20190502_2356_squashed_0003_auto_20190503_1009'), ] operations = [ migrations.CreateModel( name='Photo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField(upload_to=blog.models.uploaded_image_path, verbose_name='画像')), ('uploaded_date', models.DateTimeField(auto_now_add=True, verbose_name='アップロード日')), ], ), migrations.AddField( model_name='post', name='photo', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='post', to='blog.Photo', verbose_name='写真'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('description', models.TextField(blank=True, max_length=500)), ('image', models.ImageField(upload_to=blog.models.user_directory_path)), ('date_pub', models.DateTimeField(default=django.utils.timezone.now)), ('date_edit', models.DateTimeField(default=django.utils.timezone.now)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('likes', models.ManyToManyField(blank=True, related_name='users_likes', to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='BlogPost', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=50)), ('body', models.TextField(max_length=5000)), ('image', models.ImageField(upload_to=blog.models.upload_location)), ('date_published', models.DateTimeField(auto_now_add=True, verbose_name='date published')), ('date_updated', models.DateTimeField(auto_now=True, verbose_name='date updated')), ('slug', models.SlugField(blank=True, unique=True)), ('author', 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='Post', fields=[ ('post_id', models.AutoField(primary_key=True, serialize=False)), ('post_title', models.CharField(max_length=500)), ('post_slug', models.SlugField(max_length=500)), ('post_body', models.TextField()), ('post_publish', models.DateTimeField(default=django.utils.timezone.now)), ('post_image', models.ImageField(blank=True, null=True, upload_to=blog.models.content_file_name)), ('post_author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='blog_posts', to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=255, unique=True)), ('slug', models.SlugField(max_length=255, unique=True)), ('body', models.TextField(max_length=2000)), ('created_date', models.DateTimeField(auto_now_add=True)), ('modified_date', models.DateTimeField(auto_now=True)), ('is_published', models.BooleanField(default=False)), ('image', models.ImageField( blank=True, null=True, upload_to=blog.models.post_image_file_path)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.CreateModel( name='Image', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('description', models.CharField(blank=True, max_length=255)), ('image', models.ImageField(upload_to=blog.models.get_image_filename, verbose_name='Image')), ('post', models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='blog.Post')), ], ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('blog', '0004_auto_20191208_1707'), ] operations = [ migrations.CreateModel( name='Camdo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=30)), ('product', models.CharField(max_length=30)), ('date', models.DateTimeField(auto_now_add=True)), ('deadline', models.DateTimeField(default=blog.models.get_deadline)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='camdo', to='blog.Post')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Blog', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('id_blog', models.CharField(max_length=11)), ('cover', image_cropping.fields.ImageCropField(upload_to=blog.models.Blog.path_upload)), ('cropping', image_cropping.fields.ImageRatioField('cover', '1900x1267', adapt_rotation=False, allow_fullsize=False, free_crop=False, help_text=None, hide_image_field=False, size_warning=False, verbose_name='cropping')), ('title', models.CharField(max_length=50)), ('content', models.TextField()), ('is_show', models.BooleanField(default=False)), ('timeCreate', models.DateTimeField(auto_now_add=True)), ('timeUpdate', models.DateTimeField(auto_now=True)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('blog', '0032_auto_20210216_1237'), ] operations = [ migrations.CreateModel( name='TestImages', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField(upload_to=blog.models.get_image_filename, verbose_name='Image')), ('post', models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='blog.Post')), ], ), migrations.AlterField( model_name='comment', name='created_date', field=models.DateTimeField(default=datetime.datetime( 2021, 2, 16, 4, 45, 9, 288053, tzinfo=utc)), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('account_app', '0001_initial'), ] operations = [ migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField(blank=True, null=True, upload_to=blog.models.get_file_path)), ('title', models.CharField(max_length=200)), ('text', models.TextField(max_length=500)), ('created_date', models.DateTimeField(default=django.utils.timezone.now)), ('profile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='account_app.Profile')), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.CreateModel( name='Role', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20)), ], ), migrations.AlterField( model_name='post', name='modify_time', field=models.DateTimeField(auto_now_add=True), ), migrations.AlterField( model_name='post', name='tag', field=blog.models.TagField_Mine(blank=True, max_length=255), ), migrations.AddField( model_name='user', name='role', field=models.ManyToManyField(to='blog.Role'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='DivePost', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=100)), ('dive_site', models.CharField(blank=True, max_length=100)), ('content', models.TextField()), ('date_posted', models.DateTimeField(default=django.utils.timezone.now)), ('diver', models.ForeignKey(on_delete=models.SET( blog.models.get_sentinel_user), to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('blog', '0002_auto_20170429_0211'), ] operations = [ migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('author', models.CharField(max_length=100)), ('content', models.TextField(max_length=200)), ('timestamp', models.DateTimeField(auto_now=True)), ('approved_comment', models.BooleanField(default=False)), ], ), migrations.AlterField( model_name='post', name='title', field=models.CharField(max_length=100, unique=True, validators=[blog.models.validate_content]), ), migrations.AddField( model_name='comment', name='post', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='blog.Post'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=120)), ('slug', models.SlugField(unique=True)), ('image', models.ImageField(blank=True, height_field='height_field', null=True, upload_to=blog.models.upload_location, width_field='width_field')), ('width_field', models.IntegerField(default=0)), ('height_field', models.IntegerField(default=0)), ('context', models.TextField()), ('draft', models.BooleanField(default=False)), ('publish', models.DateField()), ('read_time', models.IntegerField(default=0)), ('updated', models.DateTimeField(auto_now=True)), ('timestamp', models.DateTimeField(auto_now_add=True)), ('owner', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='post', to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('blog', '0002_auto_20190925_1601'), ] operations = [ migrations.AlterModelOptions( name='post', options={'ordering': ['-date_pub']}, ), migrations.AlterModelOptions( name='tag', options={'ordering': ['title']}, ), migrations.AlterField( model_name='post', name='slug', field=models.SlugField(blank=True, max_length=150, unique=True), ), migrations.CreateModel( name='Images', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField(upload_to=blog.models.get_image_filename, verbose_name='Image')), ('post', models.ForeignKey(default=None, on_delete=django.db.models.deletion.CASCADE, to='blog.Post')), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('blog', '0005_auto_20180706_0324'), ] operations = [ migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('text', models.TextField()), ('created_date', models.DateTimeField(default=django.utils.timezone.now)), ], ), migrations.AlterField( model_name='post', name='User', field=models.ImageField(default='none', upload_to=blog.models.upload_image_path), ), migrations.AddField( model_name='comment', name='post', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='blog.Post'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('slug', models.SlugField(unique=True)), ('title', models.CharField(max_length=120)), ('content', models.TextField()), ('image', models.ImageField(blank=True, height_field='height_field', null=True, upload_to=blog.models.upload_location, width_field='width_field')), ('width_field', models.IntegerField(default=0)), ('height_field', models.IntegerField(default=0)), ('timestamp', models.DateTimeField(auto_now_add=True)), ('updated', models.DateTimeField(auto_now=True)), ], options={ 'ordering': ['-id', '-timestamp', '-updated'], }, ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('blog', '0017_auto_20180907_0437'), ] operations = [ migrations.CreateModel( name='Slider', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('Title', models.CharField(max_length=200, null=True, verbose_name='عنوان اسلاید')), ('Body', tinymce.models.HTMLField(max_length=2000, null=True, verbose_name='متن اسلاید')), ('Link', models.URLField(null=True, verbose_name='لینک اسلاید')), ('Image', models.ImageField(upload_to=blog.models.user_path_for_slides, verbose_name='تصویر اسلاید')), ('Commiter', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='SLIDES', to=settings.AUTH_USER_MODEL, verbose_name='اسلاید گذار')), ], options={ 'verbose_name': 'اسلاید', 'verbose_name_plural': 'اسلایدها', }, ), migrations.AlterField( model_name='comment', name='CommentStatus', field=models.CharField(choices=[('A', 'تایید شده'), ('N', 'تایید نشده'), ('D', 'رد شده')], default='A', max_length=1, verbose_name='وضعیت نظر'), ), migrations.AlterField( model_name='post', name='Image', field=models.ImageField(blank=True, null=True, upload_to=blog.models.user_path_for_posts, verbose_name='تصویر پست'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('categories', models.CharField(max_length=25)), ('title', models.CharField(max_length=180)), ('email', models.EmailField(max_length=254)), ('content', markdownx.models.MarkdownxField()), ('draft', models.BooleanField(default=True)), ('publish', models.DateField(auto_now=True)), ('date_added', models.DateTimeField(auto_now_add=True)), ('date_updated', models.DateTimeField(auto_now=True)), ('timestamp', models.DateTimeField(auto_now_add=True)), ('height_field', models.IntegerField(default=0)), ('width_field', models.IntegerField(default=0)), ('image', models.ImageField(blank=True, height_field='height_field', null=True, upload_to=blog.models.upload_location, width_field='width_field')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
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=120)), ('slug', models.SlugField(blank=True)), ('tag', models.CharField(max_length=30)), ('description', models.TextField()), ('image', models.ImageField(blank=True, null=True, upload_to=blog.models.upload_image_path)), ('created', models.DateField(auto_now_add=True)), ], options={ 'verbose_name': 'category', 'verbose_name_plural': 'categories', 'ordering': ('created',), }, ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('blog', '0001_initial'), ] operations = [ migrations.CreateModel( name='Photo', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('image', models.ImageField(upload_to=blog.models.user_path)), ('thumname_image', models.ImageField(blank=True, upload_to='')), ('comment', models.CharField(max_length=255)), ('pub_date', models.DateTimeField(auto_now_add=True)), ('owner', 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='BlogData', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=20)), ('slug', models.SlugField(unique=True)), ('image', models.ImageField(blank=True, height_field='height_field', null=True, upload_to=blog.models.upload_location, width_field='width_field')), ('height_field', models.IntegerField(default=0)), ('width_field', models.IntegerField(default=0)), ('content', models.TextField()), ('time_stamp', models.DateTimeField(auto_now_add=True)), ('user', models.ForeignKey(default=1, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ['-id', '-time_stamp'], }, ), ]
class Migration(migrations.Migration): dependencies = [ ('blog', '0003_add_link_to_google'), ] operations = [ migrations.CreateModel( name='LectureFile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('file', models.FileField(upload_to=blog.models.lecture_path, verbose_name='File')), ('blog_post', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='lecture_files', to='blog.Blog')), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('blog', '0005_postpage_date'), ] operations = [ migrations.CreateModel( name='SvgImage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=250)), ('image', models.FileField(blank=True, null=True, upload_to='', validators=[blog.models.validate_svg])), ], options={ 'verbose_name': 'SvgImage', 'verbose_name_plural': 'Svg Images', }, ), ]
class Migration(migrations.Migration): dependencies = [ ('blog', '0001_initial'), ] operations = [ migrations.CreateModel( name='BlogGallery', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('file', models.ImageField(upload_to=blog.models.gallery_upload)), ('description', models.CharField(blank=True, max_length=255)), ('uploaded_at', models.DateTimeField(auto_now_add=True)), ], options={ 'verbose_name': 'my_photo', 'verbose_name_plural': 'GalleryBlog', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='BlogPost', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('postId', models.CharField(default=blog.models.auto_id, max_length=10, unique=True)), ('title', models.CharField(max_length=100)), ('subTitle', models.CharField(max_length=100)), ('image', models.ImageField(upload_to='')), ('publishDate', models.DateTimeField()), ('draft', models.BooleanField()), ('tag', models.JSONField()), ('content', models.TextField()), ], ), ]