This commit is contained in:
2026-06-07 05:50:47 -06:00
parent 9fbab91cf9
commit cd6d67ac97
5 changed files with 43 additions and 0 deletions

View File

@@ -38,6 +38,9 @@ def create_or_update(request, payload: TutorialIn):
item.title = payload.title
item.content = payload.content
item.is_public = payload.is_public
item.example_html = payload.example_html
item.example_css = payload.example_css
item.example_js = payload.example_js
item.save()
return {"message": "更新成功"}
except Tutorial.DoesNotExist: