Skip to content

Commit

Permalink
Require tag_description
Browse files Browse the repository at this point in the history
  • Loading branch information
jimchamp committed Dec 20, 2024
1 parent 860a95e commit 5ba6a4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openlibrary/plugins/upstream/addtag.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def get_subject_tag_types():


def validate_tag(tag):
return tag.get('name', '') and tag.get('tag_type', '') in get_tag_types() and tag.get('body')
return tag.get('name', '') and tag.get('tag_description', '') and tag.get('tag_type', '') in get_tag_types() and tag.get('body')


def validate_subject_tag(tag):
Expand Down
2 changes: 1 addition & 1 deletion openlibrary/templates/type/tag/tag_form_inputs.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<label for="tag_description">$_("Tag Description")</label>
</div>
<div class="input">
<textarea id="tag_description" name="tag_description" rows="5" cols="80">$tag_description</textarea>
<textarea id="tag_description" name="tag_description" rows="5" cols="80" required>$tag_description</textarea>
</div>
</div>
</fieldset>
Expand Down

0 comments on commit 5ba6a4b

Please sign in to comment.