File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -484,32 +484,22 @@ def skip_unreadable_post(record):
484484except ImportError :
485485 pass
486486
487- # Settings for django-bootstrap3
488- # See http ://django-bootstrap3 .readthedocs.org /en/latest/settings.html
489- BOOTSTRAP3 = {
487+ # Settings for django-bootstrap5
488+ # See https ://django-bootstrap5 .readthedocs.io /en/latest/settings.html
489+ BOOTSTRAP5 = {
490490 # Label class to use in horizontal forms
491491 'horizontal_label_class' : 'col-md-2' ,
492492
493493 # Field class to use in horiozntal forms
494494 'horizontal_field_class' : 'col-md-10' ,
495495
496- # Set HTML required attribute on required fields
497- 'set_required' : True ,
498-
499496 # Set placeholder attributes to label if no placeholder is provided
500497 'set_placeholder' : False ,
501498
502- # Class to indicate required
503- 'form_required_class' : 'bootstrap3-required' ,
504-
505- # Class to indicate error
506- 'form_error_class' : 'bootstrap3-error' ,
507-
508499 'field_renderers' : {
509500 'default' : 'ietf.utils.bootstrap.SeparateErrorsFromHelpTextFieldRenderer' ,
510- 'inline' : 'bootstrap3 .renderers.InlineFieldRenderer' ,
501+ 'inline' : 'bootstrap5 .renderers.InlineFieldRenderer' ,
511502 },
512-
513503}
514504
515505# CORS settings
Original file line number Diff line number Diff line change 22# -*- coding: utf-8 -*-
33
44
5- import bootstrap3 .renderers
5+ import django_bootstrap5 .renderers
66
7- class SeparateErrorsFromHelpTextFieldRenderer (bootstrap3 .renderers .FieldRenderer ):
7+ class SeparateErrorsFromHelpTextFieldRenderer (django_bootstrap5 .renderers .FieldRenderer ):
88 def append_to_field (self , html ):
99 if self .field_help :
1010 html += '<div class="help-block">{}</div>' .format (self .field_help )
1111 for e in self .field_errors :
1212 html += '<div class="alert alert-danger">{}</div>' .format (e )
13- return html
13+ return html
You can’t perform that action at this time.
0 commit comments