From a8309d6b25f3b52df735a4c2afbe65c77c69bca0 Mon Sep 17 00:00:00 2001 From: Joseph Spiros Date: Thu, 17 Jun 2010 05:28:33 -0400 Subject: [PATCH] Revert "Made referencing containers optional on pages. Fixes a bug." This reverts commit c8256e579ea1a9e840619e1dade8f18353db7973 on admin.py. --- admin.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/admin.py b/admin.py index 49134e1..64893d5 100644 --- a/admin.py +++ b/admin.py @@ -249,8 +249,6 @@ class PageAdmin(NodeAdmin): for container_name, container_content_type in contentreference_containers: if ('contentreference_container_%s' % container_name) in form.cleaned_data: content = form.cleaned_data[('contentreference_container_%s' % container_name)] - if content == None: - continue contentreference, created = page.contentreferences.get_or_create(name=container_name, defaults={'content': content}) if not created: contentreference.content = content -- 2.20.1