From 2389d409b38157d7747330db89ea45e0e3aa4e00 Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Mon, 7 Jan 2019 22:36:26 +0100 Subject: Use proper field name in `tag_embed_validator`. --- api/validators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api') diff --git a/api/validators.py b/api/validators.py index 2c4ffe4b..7673c3fe 100644 --- a/api/validators.py +++ b/api/validators.py @@ -115,7 +115,7 @@ def validate_tag_embed(embed): 'color', 'footer', 'image', 'thumbnail', 'video', 'provider', 'author', 'fields' } - one_required_of = {'content', 'fields', 'image', 'title', 'video'} + one_required_of = {'description', 'fields', 'image', 'title', 'video'} field_validators = { 'title': ( MinLengthValidator( -- cgit v1.2.3