Changeset 1655

Show
Ignore:
Timestamp:
07/03/08 17:44:40 (21 months ago)
Author:
JensDiemer
Message:

Add required=False to forms.BooleanField? because:  http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#BooleanFieldsinnewformsenforcerequired
 http://code.djangoproject.com/changeset/7799

Location:
trunk/pylucid/PyLucid/plugins_internal
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid/PyLucid/plugins_internal/back_links/back_links_cfg.py

    r1634 r1655  
    1818class PreferencesForm(forms.Form): 
    1919    print_last_page = forms.BooleanField( 
    20         initial = True, 
     20        initial = True, required=False, 
    2121        help_text = _( 
    2222            "If checked the actual page will be the last page in the bar." 
     
    2525    ) 
    2626    print_index = forms.BooleanField( 
    27         initial = False, 
     27        initial = False, required=False, 
    2828        help_text = _('If checked every back link bar starts with a link to "index_url"'), 
    2929    ) 
  • trunk/pylucid/PyLucid/plugins_internal/find_and_replace/find_and_replace.py

    r1634 r1655  
    6565    ) 
    6666    simulate = forms.BooleanField( 
    67         initial = True, help_text = _("Don't replace anything.") 
     67        initial = True, required = False, 
     68        help_text = _("Don't replace anything.") 
     69 
    6870    ) 
    6971 
  • trunk/pylucid/PyLucid/plugins_internal/page_admin/page_admin.py

    r1651 r1655  
    9898 
    9999    preview_escape = forms.BooleanField( 
     100        required=False, 
    100101        help_text=_("Escape django template tags in preview?"), 
    101102    ) 
  • trunk/pylucid/PyLucid/plugins_internal/system_settings/system_settings_cfg.py

    r1653 r1655  
    2222class PreferencesForm(forms.Form): 
    2323    index_page = PageChoiceField( 
     24        initial=None, 
    2425        widget=forms.Select(choices=get_page_choices()), 
    2526        help_text=_("The page ID of the index page"), 
    26         initial=None 
    2727    ) 
    2828    auto_shortcuts = forms.BooleanField( 
     29        initial=True, required=False, 
    2930        help_text=_("Should the shortcut of a page rebuild on every edit?"), 
    30         initial=True 
    3131    ) 
    3232