Author: homebrew79
Date: Tue Dec  9 14:09:01 2008
New Revision: 275

Modified:
    branches/directory-style-urls/pages/admin/forms.py

Log:
fixed import bug on admin form

Modified: branches/directory-style-urls/pages/admin/forms.py
==============================================================================
--- branches/directory-style-urls/pages/admin/forms.py  (original)
+++ branches/directory-style-urls/pages/admin/forms.py  Tue Dec  9 14:09:01  
2008
@@ -53,12 +53,12 @@
              if self.instance.id:
                  sibling_slugs = [sibling.slug() for sibling in  
self.instance.get_siblings()]
                  if slug in sibling_slugs:
-                    raise forms.ValidationError(ugettext_lazy('A sibling  
page with this slug already exists'))
+                    raise forms.ValidationError(_('A sibling page with  
this slug already exists'))
              elif target is not None and position is not None:
                  if position in ('left', 'right'):
                      if not unique_slug_for_parent(slug=slug,  
page_id=target, relationship='sibling'):
-                        raise forms.ValidationError(ugettext_lazy('A  
sibling page with this slug already exists'))
+                        raise forms.ValidationError(_('A sibling page with  
this slug already exists'))
                  elif position == 'first-child':
                      if not unique_slug_for_parent(slug=slug,  
page_id=target, relationship='parent'):
-                        raise forms.ValidationError(ugettext_lazy('A  
sibling page with this slug already exists'))
+                        raise forms.ValidationError(_('A sibling page with  
this slug already exists'))
          return slug

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to