X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/da63b5b1fdcd03f375ff6b40a1d022d4e8778801..8efb262f2f1a58b3ce30d16d376bc64a56a24119:/admin.py diff --git a/admin.py b/admin.py index ce79635..9e991d9 100644 --- a/admin.py +++ b/admin.py @@ -251,9 +251,9 @@ class PageAdmin(NodeAdmin): content = form.cleaned_data[('contentreference_container_%s' % container_name)] try: contentreference = page.contentreferences.get(name=container_name) - except: + except ContentReference.DoesNotExist: contentreference = ContentReference(name=container_name, page=page, content_type=container_content_type) - + if content == None: contentreference.content_id = None else: