- 新增 studio 应用与 /manage/ 写作台 - 文章增删改查、状态/分类/标签、搜索筛选分页 - 分类增删改查,支持父分类 - 直接上传 .md(front matter)并创建文章,编辑页支持 Markdown 导入 - Post 增加 content_format,公开文章页支持 Markdown 渲染 - 复用拾匣密码解锁;首页页脚新增写作台入口
24 lines
556 B
Python
24 lines
556 B
Python
# Generated by Django 5.2.18 on 2026-11-21 04:31
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
("blog", "0003_siteinfo"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name="post",
|
|
name="content_format",
|
|
field=models.CharField(
|
|
choices=[("html", "HTML"), ("markdown", "Markdown")],
|
|
default="html",
|
|
max_length=20,
|
|
verbose_name="内容格式",
|
|
),
|
|
),
|
|
]
|