Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Merge pull request #1456 from neoascetic/patch-1

Fix form `clean` method
  • Loading branch information...
commit 494306c7f2075447afca5cb884d988d634a3213e 2 parents 9f322fa + b8f9fab
@digi604 digi604 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  cms/admin/
2  cms/admin/
@@ -116,7 +116,7 @@ def clean(self):
if site and not is_valid_page_slug(page, parent, lang, slug, site):
self._errors['slug'] = ErrorList([_('Another page with this slug already exists')])
del cleaned_data['slug']
- if self.cleaned_data['published'] and page.title_set.count():
+ if self.cleaned_data.get('published') and page.title_set.count():
#Check for titles attached to the page makes sense only because
#AdminFormsTests.test_clean_overwrite_url validates the form with when no page instance available
#Looks like just a theoretical corner case
Please sign in to comment.
Something went wrong with that request. Please try again.