Skip to content

feat: 添加文章和评论编辑功能#31

Merged
aba2222 merged 1 commit into
aba2222:mainfrom
xiokuai:feature/post-comment-edit
Feb 24, 2026
Merged

feat: 添加文章和评论编辑功能#31
aba2222 merged 1 commit into
aba2222:mainfrom
xiokuai:feature/post-comment-edit

Conversation

@xiokuai
Copy link
Copy Markdown
Contributor

@xiokuai xiokuai commented Feb 23, 2026

Summary

  • 添加文章编辑和评论编辑功能,仅作者本人可编辑
  • 在帖子详情页的删除按钮旁添加编辑按钮(铅笔图标)
  • 编辑页面复用现有的 MDEditor 表单,风格与创建页面统一

Changes

  • forum/views.py: 新增 post_edit_viewcomment_edit_view
  • forum/urls.py: 新增编辑路由
  • forum/templates/forum/post_edit.html: 文章编辑模板
  • forum/templates/forum/comment_edit.html: 评论编辑模板
  • forum/templates/forum/post_detail.html: 添加编辑按钮

@aba2222 aba2222 merged commit a3feb50 into aba2222:main Feb 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants