Browse Source

Fix error if tags omitted from new topic POST

merge-requests/72/head
Deimos 6 years ago
parent
commit
fa4f63424c
  1. 2
      tildes/tildes/views/topic.py

2
tildes/tildes/views/topic.py

@ -43,7 +43,7 @@ DefaultSettings = namedtuple("DefaultSettings", ["order", "period"])
@view_config(route_name="group_topics", request_method="POST", permission="post_topic")
@use_kwargs(TopicSchema(only=("title", "markdown", "link")))
@use_kwargs({"tags": String()})
@use_kwargs({"tags": String(missing="")})
def post_group_topics(
request: Request, title: str, markdown: str, link: str, tags: str
) -> HTTPFound:

Loading…
Cancel
Save