class Migration(migrations.Migration): dependencies = [ ('art', '0004_art_cover'), ] operations = [ migrations.CreateModel( name='Chapter', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50, verbose_name='名称')), ('content', models.TextField(verbose_name='内容')), ('publish_date', models.DateTimeField(auto_now_add=True, verbose_name='发布时间')), ], options={ 'verbose_name': '章节', 'verbose_name_plural': '章节', 'db_table': 't_chapter', 'ordering': ['publish_date'], }, ), migrations.CreateModel( name='RollSet', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50, unique=True, verbose_name='名称')), ('free_level', models.IntegerField(choices=[(0, '免费'), (1, 'VIP')], default=0, verbose_name='免费级别')), ], options={ 'verbose_name': '卷集', 'verbose_name_plural': '卷集', 'db_table': 't_roll', 'ordering': ['id'], }, ), migrations.AlterField( model_name='art', name='cover', field=models.ImageField(blank=True, null=True, upload_to=art.models.save_file_path, verbose_name='封面'), ), migrations.AddField( model_name='rollset', name='art', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='art.Art', verbose_name='所属文章'), ), migrations.AddField( model_name='chapter', name='roll', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='art.RollSet', verbose_name='所属卷集'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Art', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(help_text='Max 250 characters', max_length=250)), ('body', models.TextField()), ('body_html', models.TextField(blank=True, editable=False)), ('pub_date', models.DateTimeField(default=datetime.datetime.now)), ('art_type', models.IntegerField(choices=[(1, 'Photography'), (2, 'Modelling'), (3, 'Sketches')], default=3)), ('tags', tagging.fields.TagField( blank=True, help_text='Seperate tags with spaces.', max_length=255)), ('url', models.URLField(blank=True, null=True, unique=True, verbose_name='URL')), ('image_highres', models.ImageField( upload_to=art.models.Art.get_upload_path_high)), ('image_lowres', models.ImageField( upload_to=art.models.Art.get_upload_path_low)), ], options={ 'ordering': ['-pub_date'], }, ), ]
class Migration(migrations.Migration): dependencies = [ ('art', '0006_art_slug'), ] operations = [ migrations.CreateModel( name='Art_Url', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('body', models.TextField()), ('body_html', models.TextField(blank=True, editable=False)), ('url', models.URLField(blank=True, null=True, verbose_name='URL')), ('sequence', models.IntegerField()), ], options={ 'ordering': ['sequence'], }, ), migrations.AlterField( model_name='art', name='image_highres', field=models.ImageField( blank=True, null=True, upload_to=art.models.Art.get_upload_path_high), ), migrations.AlterField( model_name='art', name='image_lowres', field=models.ImageField( blank=True, null=True, upload_to=art.models.Art.get_upload_path_low), ), migrations.AddField( model_name='art_url', name='art', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='art.Art'), ), ]
class Migration(migrations.Migration): dependencies = [ ('art', '0011_auto_20180829_0943'), ] operations = [ migrations.CreateModel( name='Chapter', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50, verbose_name='章节名称')), ('content', models.TextField(verbose_name='文章内容')), ('pulish_time', models.DateTimeField(auto_now_add=True, verbose_name='发表时间')), ], options={ 'verbose_name': '单章详情', 'verbose_name_plural': '单章详情', 'db_table': 't_chapter', 'ordering': ['pulish_time'], }, ), migrations.CreateModel( name='Rollset', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50, unique=True, verbose_name='名称')), ('free_level', models.IntegerField(choices=[(0, '免费'), (1, 'VIP')], default=0, verbose_name='免费级别')), ], options={ 'verbose_name': '卷集', 'verbose_name_plural': '卷集', 'db_table': 't_roll', 'ordering': ['id'], }, ), migrations.AlterField( model_name='art', name='change_time', field=models.DateTimeField(auto_now=True, verbose_name='最近更新时间'), ), migrations.AlterField( model_name='art', name='img', field=models.ImageField(blank=True, null=True, upload_to=art.models.new_file_name, verbose_name='封面'), ), migrations.AlterField( model_name='art', name='pulish_data', field=models.DateTimeField(auto_now_add=True, verbose_name='发布时间'), ), migrations.AlterField( model_name='art', name='tags', field=models.ManyToManyField(to='art.Tag', verbose_name='标签'), ), migrations.AddField( model_name='rollset', name='art', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='art.Art', verbose_name='所属小说'), ), migrations.AddField( model_name='chapter', name='roll', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='art.Rollset', verbose_name='所属卷集'), ), ]