From f4d022913017a9736093bccd21bdcdf266116f86 Mon Sep 17 00:00:00 2001 From: Loic Teixeira Date: Tue, 26 Apr 2016 16:45:49 +1200 Subject: [PATCH] Make meta description optional Contribute to #3 --- wagtailembedder/views/chooser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wagtailembedder/views/chooser.py b/wagtailembedder/views/chooser.py index 69cbbb8..8451580 100644 --- a/wagtailembedder/views/chooser.py +++ b/wagtailembedder/views/chooser.py @@ -22,7 +22,7 @@ def index(request): content_type._meta.app_label, content_type._meta.model.__name__, content_type._meta.verbose_name, - content_type._meta.description, + getattr(content_type._meta, 'description', ''), ) for content_type in get_snippet_models() if user_can_edit_snippet_type(request.user, content_type)