Skip to content

添加空标题验证#93

Open
wyy2828 wants to merge 1 commit intoshreys7:developfrom
wyy2828:fix-empty-todo-validation
Open

添加空标题验证#93
wyy2828 wants to merge 1 commit intoshreys7:developfrom
wyy2828:fix-empty-todo-validation

Conversation

@wyy2828
Copy link
Copy Markdown

@wyy2828 wyy2828 commented Oct 19, 2025

这个PR添加了对空标题的验证功能:

  1. 在添加待办事项时验证标题不能为空
  2. 添加错误消息显示功能
  3. 优化用户体验,提供清晰的错误提示

修改内容:

  • views.py中添加标题验证逻辑
  • 在模板中添加错误消息显示区域
  • 使用Django messages框架显示友好的错误提示

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.

1 participant