class Migration(migrations.Migration): dependencies = [ ('blog', '0002_auto_20190802_1412'), ] operations = [ migrations.RemoveField( model_name='post', name='body', ), migrations.AddField( model_name='post', name='contect', field=DjangoUeditor.models.UEditorField(default='', verbose_name='内空'), ), migrations.AlterField( model_name='post', name='slug', field=models.SlugField(default='', max_length=250, unique_for_date='publish'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='ArticleColumn', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('column', models.CharField(max_length=200)), ('created', models.DateField(auto_now_add=True)), ], ), migrations.CreateModel( name='ArticlePost', fields=[ ('pid', models.AutoField(auto_created=True, primary_key=True, serialize=False)), ('is_school_info', models.BooleanField(default=False)), ('title', models.CharField(max_length=200)), ('body', models.TextField()), ('ueditor_body', DjangoUeditor.models.UEditorField(null=True, verbose_name='内容')), ('isElite', models.BooleanField(default=False)), ('pub_date', models.DateTimeField(auto_now_add=True, db_index=True)), ('slug', models.SlugField(allow_unicode=True, default='django-db-models-fields-CharField', max_length=500)), ('comment_counter', models.IntegerField(default=0)), ], ), migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('ueditor_body', DjangoUeditor.models.UEditorField(null=True, verbose_name='内容')), ('created', models.DateTimeField(auto_now_add=True)), ('counter', models.IntegerField()), ], options={ 'ordering': ('created',), }, ), migrations.CreateModel( name='PostRead', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('read_time', models.IntegerField(default=0)), ('post_fk', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='article.ArticlePost')), ], ), ]
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=250, verbose_name='标题')), ('slug', models.SlugField(editable=False)), ('content', DjangoUeditor.models.UEditorField(default='', verbose_name='内容')), ('sessions', models.TextField(max_length=250)), ('publish', models.DateTimeField(default=django.utils.timezone.now, verbose_name='发布时间')), ('created', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('updated', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('status', models.CharField(choices=[('draft', '草稿'), ('published', '已发布')], default='draft', max_length=10, verbose_name='状态')), ('author', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='blog_posts', to=settings.AUTH_USER_MODEL, verbose_name='作者')), ], options={ 'verbose_name_plural': '博客', 'ordering': ('-publish', ), }, ), ]
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(help_text='标题', max_length=50, verbose_name='标题')), ('pic', models.ImageField(help_text='广告图', upload_to='uploads', verbose_name='广告图')), ('adurl', models.URLField(help_text='地址', verbose_name='地址')), ('adlocation', models.CharField(help_text='位置', max_length=2, verbose_name='位置')), ('status', models.CharField(default=1, help_text='状态', max_length=1, verbose_name='状态')), ], ), migrations.CreateModel( name='Article', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(help_text='名称', max_length=100, verbose_name='标题')), ('slug', models.SlugField(unique_for_year='publish_date', verbose_name='描述')), ('content', DjangoUeditor.models.UEditorField(blank=True, default='', verbose_name='内容')), ('status', models.CharField(help_text='状态', max_length=2, verbose_name='状态')), ('publish_date', models.DateTimeField(default=datetime.datetime( 2018, 9, 24, 22, 46, 14, 204475), help_text='发布日期', verbose_name='发布日期')), ('expiration_date', models.DateTimeField(blank=True, help_text='有效日期', null=True, verbose_name='有效日期')), ('is_active', models.BooleanField(default=True, help_text='是否热门', verbose_name='是否热门')), ('pic', models.ImageField(help_text='图片', upload_to='uploads', verbose_name='图片')), ('praise_num', models.IntegerField(default=0, help_text='点赞', verbose_name='点赞')), ('read_num', models.IntegerField(default=0, help_text='浏览数', verbose_name='浏览数')), ('fav_num', models.IntegerField(default=0, help_text='收藏数', verbose_name='收藏数')), ('author', models.ForeignKey(help_text='作者', on_delete=django.db.models.deletion.CASCADE, related_name='author', to=settings.AUTH_USER_MODEL, verbose_name='作者')), ], options={ 'verbose_name_plural': '新闻文章', 'verbose_name': '新闻文章', }, ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(help_text='大类', max_length=20, verbose_name='名称')), ], options={ 'verbose_name_plural': '新闻类别', 'ordering': ['title'], 'verbose_name': '新闻类别', }, ), migrations.CreateModel( name='Item', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(help_text='名称', max_length=20, verbose_name='名称')), ('created_date', models.DateTimeField(default=datetime.datetime.now, help_text='创建时间', verbose_name='创建时间')), ('completed', models.BooleanField(default=False, help_text='是否完成', verbose_name='是否完成')), ('categorys', models.ForeignKey(help_text='大类', on_delete=django.db.models.deletion.CASCADE, related_name='items', to='article.Category')), ], options={ 'verbose_name_plural': '新闻子栏目', 'ordering': ['title'], 'verbose_name': '新闻子栏目', }, ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(help_text='名称', max_length=50, verbose_name='名称')), ('slug', models.SlugField(verbose_name='描述')), ], options={ 'verbose_name_plural': '标签', 'ordering': ['id'], 'verbose_name': '标签', }, ), migrations.CreateModel( name='UserFav', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('add_time', models.DateTimeField(default=datetime.datetime.now, verbose_name='添加时间')), ('articles', models.ForeignKey(help_text='文章id', on_delete=django.db.models.deletion.CASCADE, related_name='articles', to='article.Article', verbose_name='文章')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='user', to=settings.AUTH_USER_MODEL, verbose_name='用户')), ], options={ 'verbose_name_plural': '用户收藏', 'verbose_name': '用户收藏', }, ), migrations.AddField( model_name='article', name='item', field=models.ForeignKey( help_text='类别名称', on_delete=django.db.models.deletion.CASCADE, related_name='item', to='article.Item', verbose_name='类别名称'), ), migrations.AddField( model_name='article', name='tags', field=models.ManyToManyField(blank=True, help_text='标签', related_name='tags', to='article.Tag'), ), migrations.AlterUniqueTogether( name='userfav', unique_together={('user', 'articles')}, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Activate', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('text', models.TextField(null=True, verbose_name='公告')), ('is_active', models.BooleanField(default=False, verbose_name='是否开启')), ('add_date', models.DateTimeField(auto_now_add=True, verbose_name='提交日期')), ], options={ 'verbose_name': '公告', 'verbose_name_plural': '公告', }, ), migrations.CreateModel( name='BigCategory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20, verbose_name='文章大分类')), ('slug', models.SlugField(unique=True)), ('description', models.TextField(default='ygy的个人网站,记录生活的瞬间,分享学习的心得,感悟生活,留住感动,静静寻觅生活的美好', help_text='用来作为SEO中description,长度参考SEO标准', max_length=240, verbose_name='描述')), ('keywords', models.TextField(default='ygy,ygy1997,归元,网络,IT,技术,博客,Python', help_text='用来作为SEO中keywords,长度参考SEO标准', max_length=240, verbose_name='关键字')), ], options={ 'verbose_name': '大分类', 'verbose_name_plural': '大分类', }, ), migrations.CreateModel( name='Carousel', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('number', models.IntegerField(help_text='编号决定图片播放的顺序,图片不要多于5张', verbose_name='编号')), ('title', models.CharField(blank=True, help_text='标题可以为空', max_length=20, null=True, verbose_name='标题')), ('content', models.CharField(max_length=80, verbose_name='描述')), ('img_url', models.CharField(max_length=200, verbose_name='图片地址')), ('url', models.CharField(default='#', help_text='图片跳转的超链接,默认#表示不跳转', max_length=200, verbose_name='跳转链接')), ], options={ 'verbose_name': '图片轮播', 'verbose_name_plural': '图片轮播', 'ordering': ['number', '-id'], }, ), migrations.CreateModel( name='FriendLink', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50, verbose_name='网站名称')), ('description', models.CharField(blank=True, max_length=100, verbose_name='网站描述')), ('link', models.URLField(help_text='请填写http或https开头的完整形式地址', verbose_name='友链地址')), ('logo', models.URLField(blank=True, help_text='请填写http或https开头的完整形式地址', verbose_name='网站LOGO')), ('create_date', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('is_active', models.BooleanField(default=True, verbose_name='是否有效')), ('is_show', models.BooleanField(default=False, verbose_name='是否首页展示')), ], options={ 'verbose_name': '友情链接', 'verbose_name_plural': '友情链接', 'ordering': ['create_date'], }, ), migrations.CreateModel( name='Keyword', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20, verbose_name='文章关键词')), ], options={ 'verbose_name': '关键词', 'verbose_name_plural': '关键词', 'ordering': ['name'], }, ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20, verbose_name='文章标签')), ('slug', models.SlugField(unique=True)), ('description', models.TextField(default='ygy的个人网站,记录生活的瞬间,分享学习的心得,感悟生活,留住感动,静静寻觅生活的美好', help_text='用来作为SEO中description,长度参考SEO标准', max_length=240, verbose_name='描述')), ], options={ 'verbose_name': '标签', 'verbose_name_plural': '标签', 'ordering': ['id'], }, ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=20, verbose_name='文章分类')), ('slug', models.SlugField(unique=True)), ('description', models.TextField(default='ygy的个人网站,记录生活的瞬间,分享学习的心得,感悟生活,留住感动,静静寻觅生活的美好', help_text='用来作为SEO中description,长度参考SEO标准', max_length=240, verbose_name='描述')), ('bigcategory', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='ygy.BigCategory', verbose_name='大分类')), ], options={ 'verbose_name': '分类', 'verbose_name_plural': '分类', 'ordering': ['name'], }, ), migrations.CreateModel( name='Article', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=150, verbose_name='文章标题')), ('summary', models.TextField(default='文章摘要等同于网页description内容,请务必填写...', max_length=230, verbose_name='文章摘要')), ('body', DjangoUeditor.models.UEditorField(verbose_name='内容')), ('img_link', models.CharField(default='/static/images/summary.jpg', max_length=255, verbose_name='图片地址')), ('create_date', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_date', models.DateTimeField(auto_now=True, verbose_name='修改时间')), ('views', models.IntegerField(default=0, verbose_name='阅览量')), ('loves', models.IntegerField(default=0, verbose_name='喜爱量')), ('slug', models.SlugField(unique=True)), ('author', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to=settings.AUTH_USER_MODEL, verbose_name='作者')), ('category', models.ForeignKey(on_delete=django.db.models.deletion.DO_NOTHING, to='ygy.Category', verbose_name='文章分类')), ('keywords', models.ManyToManyField(help_text='文章关键词,用来作为SEO中keywords,最好使用长尾词,3-4个足够', to='ygy.Keyword', verbose_name='文章关键词')), ('tags', models.ManyToManyField(to='ygy.Tag', verbose_name='标签')), ], options={ 'verbose_name': '文章', 'verbose_name_plural': '文章', 'ordering': ['-create_date'], }, ), ]
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')), ('name', models.CharField(blank=True, max_length=200, null=True, verbose_name='名称')), ('slug', models.SlugField(default='', max_length=200, unique=True, verbose_name='标签')), ('created', models.DateTimeField(auto_now_add=True, null=True, verbose_name='创建')), ('updated', models.DateTimeField(auto_now=True, null=True)), ('status', models.CharField(choices=[('1', '正常'), ('0', '冻结')], db_index=True, default=1, max_length=1, verbose_name='状态')), ('parent', models.ForeignKey(blank=True, default=0, null=True, on_delete='', related_name='child', to='seckill.Category', verbose_name='上级分类')), ], options={ 'verbose_name_plural': 'categories', 'verbose_name': 'category', }, ), migrations.CreateModel( name='Product', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(db_index=True, max_length=200, unique=True, verbose_name='名称')), ('slug', models.SlugField(blank=True, max_length=200, null=True, verbose_name='标签')), ('description', DjangoUeditor.models.UEditorField(blank=True, default='', verbose_name='内容')), ('productno', models.CharField(blank=True, db_index=True, max_length=200, null=True, verbose_name='编号')), ('image', models.ImageField(blank=True, upload_to='products/%Y/%m/%d', verbose_name='小图')), ('largeimage', models.ImageField(blank=True, upload_to='products/%Y/%m/%d', verbose_name='大图')), ('price', models.DecimalField(decimal_places=2, max_digits=10, verbose_name='原价')), ('saleprice', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True, verbose_name='销售价')), ('stock', models.PositiveIntegerField(verbose_name='库存')), ('available', models.BooleanField(default=True, verbose_name='有效')), ('created', models.DateTimeField(auto_now_add=True, null=True)), ('updated', models.DateTimeField(auto_now=True, null=True)), ('remark', models.CharField(blank=True, max_length=400, null=True, verbose_name='简要介绍')), ('category', models.ForeignKey(on_delete='', to='seckill.Category')), ], options={ 'ordering': ('-created', ), }, ), migrations.CreateModel( name='SaleProducts', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(blank=True, max_length=200, null=True, verbose_name='标题')), ('status', models.CharField(blank=True, choices=[('1', '正常'), ('0', '冻结'), ('2', '过期')], max_length=1, null=True, verbose_name='状态')), ('marketprice', models.DecimalField(decimal_places=2, max_digits=10, verbose_name='市场价')), ('price', models.DecimalField(decimal_places=2, max_digits=10, verbose_name='秒杀价')), ('startdatetime', models.DateTimeField(default=datetime.datetime( 2018, 5, 7, 21, 31, 59, 938869), verbose_name='开始时间')), ('enddatetime', models.DateTimeField(default=datetime.datetime( 2018, 5, 7, 22, 31, 59, 937868), verbose_name='结束时间')), ('stock_total', models.IntegerField(default=0, verbose_name='总库存')), ('remain_qty', models.IntegerField(default=0, verbose_name='可销售数')), ('desc', DjangoUeditor.models.UEditorField(blank=True, default='', verbose_name='内容')), ('image', models.ImageField(blank=True, upload_to='products/%Y/%m/%d', verbose_name='小图')), ('protduct', models.ForeignKey(blank=True, null=True, on_delete='', to='seckill.Product', verbose_name='商品')), ], ), migrations.CreateModel( name='Supplier', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, max_length=200, null=True, verbose_name='名称')), ('phone', models.CharField(blank=True, max_length=50, null=True, verbose_name='电话')), ('linkman', models.CharField(blank=True, max_length=200, null=True, verbose_name='联系人')), ('desc', models.CharField(blank=True, max_length=800, null=True, verbose_name='介绍')), ('kind', models.CharField(choices=[('1', '供货商'), ('1', '物流公司'), ('2', '其他')], db_index=True, default=1, max_length=2, verbose_name='类别')), ('brands', models.CharField(blank=True, max_length=50, null=True, verbose_name='品牌')), ('image', models.ImageField(blank=True, upload_to='supplier/', verbose_name='图片')), ('created', models.DateTimeField(auto_now_add=True, null=True)), ('updated', models.DateTimeField(auto_now=True, null=True)), ('status', models.CharField(choices=[('1', '正常'), ('0', '冻结')], db_index=True, default=1, max_length=1, verbose_name='状态')), ], options={ 'verbose_name_plural': 'suppliers', 'verbose_name': 'supplier', }, ), migrations.CreateModel( name='Ziku', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('qustion', models.CharField(blank=True, max_length=200, null=True, verbose_name='问题')), ('answer', models.CharField(blank=True, max_length=200, null=True, verbose_name='答案')), ], ), migrations.AddField( model_name='product', name='supplier', field=models.ForeignKey(blank=True, null=True, on_delete='', to='seckill.Supplier', verbose_name='供应商'), ), ]
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')), ('name', models.CharField(default='', help_text='类别名', max_length=30, unique=True, verbose_name='类别名')), ('slug', models.SlugField(blank=True, default='', max_length=255, unique=True, verbose_name='(URL)别名')), ('title', models.CharField(default='', help_text='title', max_length=255, verbose_name='标题(seo)')), ('keywords', models.CharField(default='', help_text='keywords', max_length=255, verbose_name='关键字(seo)')), ('description', models.CharField(default='', help_text='description', max_length=255, verbose_name='描述(seo)')), ('created_at', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='创建时间')), ], options={ 'verbose_name': '分类', 'verbose_name_plural': '分类', 'ordering': ('created_at', ), }, ), migrations.CreateModel( name='Album', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255, unique=True, verbose_name='标题')), ('image', models.ImageField( blank=True, null=True, storage=quanbenxiaoshuo.storage.ImageStorage(), upload_to='album/%Y/%m', verbose_name='专辑封面')), ('info', DjangoUeditor.models.UEditorField(default='', verbose_name='简介')), ('slug', models.SlugField(blank=True, default='', max_length=255, unique=True, verbose_name='(URL)别名')), ('title', models.CharField(default='', help_text='title', max_length=255, verbose_name='标题(seo)')), ('keywords', models.CharField(default='', help_text='keywords', max_length=255, verbose_name='关键字(seo)')), ('description', models.CharField(default='', help_text='description', max_length=255, verbose_name='描述(seo)')), ('is_tab', models.BooleanField(default=False, help_text='首页编辑推荐显示', verbose_name='显示在首页')), ('created_at', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='创建时间')), ('category', models.ForeignKey(default='', on_delete=django.db.models.deletion.CASCADE, related_name='category_album', to='albums.Category', verbose_name='类别')), ], options={ 'verbose_name': '专辑', 'verbose_name_plural': '专辑', 'ordering': ('-created_at', ), }, ), migrations.CreateModel( name='TabAlbum', fields=[], options={ 'verbose_name': '推荐专辑', 'verbose_name_plural': '推荐专辑', 'proxy': True, 'indexes': [], 'constraints': [], }, bases=('albums.album', ), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('albums', '0001_initial'), ('taggit', '0003_taggeditem_add_unique_index'), ] operations = [ migrations.CreateModel( name='Chapter', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('is_tab', models.BooleanField(default=False, verbose_name='是否目录')), ('name', models.CharField(max_length=255, verbose_name='章节名')), ('order', models.SmallIntegerField(blank=True, db_index=True, default=0, help_text='自动递增', verbose_name='排序')), ('insert', models.SmallIntegerField(blank=True, default=0, help_text='插入章节order', null=True, verbose_name='插入章节')), ('slug', models.SlugField(blank=True, default='', max_length=255, verbose_name='(URL)别名')), ('created_at', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='创建时间')), ('updated_at', models.DateTimeField(auto_now=True, db_index=True, verbose_name='更新时间')), ], options={ 'verbose_name': '章节', 'verbose_name_plural': '章节', 'ordering': ('order', ), }, ), migrations.CreateModel( name='Novel', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255, verbose_name='标题')), ('author', models.CharField(max_length=255, verbose_name='作者')), ('image', models.ImageField( blank=True, null=True, storage=quanbenxiaoshuo.storage.ImageStorage(), upload_to='novel/%Y/%m', verbose_name='小说封面')), ('info', DjangoUeditor.models.UEditorField(default='', verbose_name='简介')), ('title', models.CharField(default='', help_text='title', max_length=255, verbose_name='标题(seo)')), ('keywords', models.CharField(default='', help_text='keywords', max_length=255, verbose_name='关键字(seo)')), ('description', models.CharField(default='', help_text='description', max_length=255, verbose_name='描述(seo)')), ('status', models.CharField(choices=[('D', '不公开'), ('P', '公开')], default='D', max_length=1, verbose_name='状态')), ('slug', models.SlugField(blank=True, default='', max_length=255, unique=True, verbose_name='(URL)别名')), ('is_full', models.BooleanField(default=False, verbose_name='是否完本')), ('created_at', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='创建时间')), ('updated_at', models.DateTimeField(auto_now=True, db_index=True, verbose_name='更新时间')), ('album', models.ManyToManyField(blank=True, related_name='album_novel', to='albums.Album', verbose_name='专辑')), ('category', models.ManyToManyField(blank=True, related_name='category_novel', to='albums.Category', verbose_name='类别')), ('tags', taggit.managers.TaggableManager(help_text='多个标签使用,(英文)隔开', through='taggit.TaggedItem', to='taggit.Tag', verbose_name='小说类型')), ], options={ 'verbose_name': '小说', 'verbose_name_plural': '小说', 'ordering': ('-updated_at', ), 'unique_together': {('name', 'author')}, 'index_together': {('status', 'slug')}, }, ), migrations.CreateModel( name='Content', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('content', models.TextField(verbose_name='小说内容')), ('created_at', models.DateTimeField(auto_now_add=True, db_index=True, verbose_name='创建时间')), ('updated_at', models.DateTimeField(auto_now=True, db_index=True, verbose_name='更新时间')), ('chapter', models.ForeignKey(default='', on_delete=django.db.models.deletion.CASCADE, related_name='chapter_content', to='novels.Chapter', verbose_name='小说章节')), ], options={ 'verbose_name': '小说内容', 'verbose_name_plural': '小说内容', }, ), migrations.AddField( model_name='chapter', name='novel', field=models.ForeignKey( default='', on_delete=django.db.models.deletion.CASCADE, related_name='novel_chapter', to='novels.Novel', verbose_name='小说名称'), ), migrations.AlterIndexTogether( name='chapter', index_together={('novel', 'id')}, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Page', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=128, verbose_name='\u6807\u9898')), ('intro', models.CharField(max_length=200, verbose_name='\u6458\u8981')), ('thumb', models.ImageField(help_text='\u5efa\u8bae\u5927\u5c0f\u4e3a815*400', upload_to=vrmode.models.page_img_path, verbose_name='\u5c01\u9762')), ('slug', models.SlugField(max_length=254, unique=True, verbose_name='\u552f\u4e00\u8def\u5f84')), ('status', models.CharField(choices=[(b'1', '\u8349\u7a3f'), (b'2', '\u751f\u6548')], default=b'1', max_length=1, verbose_name='\u72b6\u6001')), ('order', models.PositiveIntegerField(default=100, help_text='\u4ece\u5c0f\u5230\u5927\u663e\u793a,\u76f8\u540c\u987a\u5e8f\u6309\u7167[\u663e\u793a\u53d1\u5e03\u65f6\u95f4]\u6392\u5e8f', verbose_name='\u6392\u5e8f')), ('time_display', models.DateTimeField(verbose_name='\u663e\u793a\u53d1\u5e03\u65f6\u95f4')), ('content', DjangoUeditor.models.UEditorField(default=b'', verbose_name='\u5185\u5bb9')), ('created_time', models.DateTimeField(auto_now_add=True, verbose_name='\u521b\u5efa\u65f6\u95f4')), ('last_modified', models.DateTimeField(auto_now=True, verbose_name='\u6700\u8fd1\u66f4\u65b0\u65f6\u95f4')), ], options={ 'db_table': 'page_static', 'verbose_name': '\u9875\u9762\u53d1\u5e03', 'verbose_name_plural': '\u9875\u9762\u53d1\u5e03', }, ), migrations.CreateModel( name='PageType', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=128, verbose_name='\u6807\u9898\u540d\u79f0')), ('status', models.CharField(choices=[(b'1', '\u8349\u7a3f'), (b'2', '\u751f\u6548')], default=b'1', max_length=1, verbose_name='\u72b6\u6001')), ('order', models.PositiveIntegerField(default=100, help_text='\u4ece\u5c0f\u5230\u5927\u663e\u793a,\u76f8\u540c\u987a\u5e8f\u6309\u7167[\u663e\u793a\u53d1\u5e03\u65f6\u95f4]\u6392\u5e8f', verbose_name='\u6392\u5e8f')), ], options={ 'db_table': 'page_type', 'verbose_name': '\u9875\u9762\u7c7b\u578b', 'verbose_name_plural': '\u9875\u9762\u7c7b\u578b', }, ), migrations.CreateModel( name='VRBanner', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=128, verbose_name='\u6807\u9898')), ('intro', models.CharField(max_length=200, verbose_name='\u7b80\u4ecb')), ('cover', models.ImageField(help_text='\u8f6e\u64ad\u56fe\u7247 640*320', upload_to=vrmode.models.vrbanner_img_path, verbose_name='\u5c01\u9762')), ('vrlink', models.CharField(blank=True, max_length=128, null=True, verbose_name='\u6587\u7ae0\u94fe\u63a5')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='\u521b\u5efa\u65f6\u95f4')), ], options={ 'ordering': ['-create_time'], 'verbose_name': '\u9996\u9875\u8f6e\u64ad', 'verbose_name_plural': '\u9996\u9875\u8f6e\u64ad', }, ), migrations.CreateModel( name='VRMode', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=128, verbose_name='\u6807\u9898')), ('intro', models.CharField(max_length=200, verbose_name='\u7b80\u4ecb')), ('cover', models.ImageField(help_text='3D\u65b9\u6848\u5c01\u9762\u56fe\u7247 815*400', upload_to=vrmode.models.vrmode_img_path, verbose_name='\u5c01\u9762')), ('vrzip', models.FileField(blank=True, help_text='\u5982\u679c\u4fdd\u6301\u4e3a\u7a7a\uff0c\u8868\u793a\u53ea\u6709\u5c01\u9762\uff0c\u5426\u5219\u4e0a\u9762\u8bf7\u4e0a\u4f20vr\u538b\u7f29\u5305', null=True, upload_to=vrmode.models.vr_zip_path, verbose_name='vr\u6587\u4ef6\u538b\u7f29\u5305')), ('vrlink', models.CharField(blank=True, max_length=128, null=True, verbose_name='vr\u94fe\u63a5')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='\u521b\u5efa\u65f6\u95f4')), ], options={ 'ordering': ['-create_time'], 'verbose_name': '3D\u65b9\u6848', 'verbose_name_plural': '3D\u65b9\u6848', }, ), migrations.AddField( model_name='page', name='type', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='page', to='vrmode.PageType', verbose_name='\u9875\u9762\u7c7b\u578b'), ), ]