old_contents: from django import forms
  from django.utils.translation import ugettext as _
  
  
  class BookForm(forms.Form):
      publisher = forms.CharField(help_text=_("Publisher"), max_length=150,
                                  widget=forms.TextInput(attrs={'required': 'required'}))
      title = forms.CharField(help_text=_("Title"), max_length=150,
                              widget=forms.TextInput(attrs={'required': 'required'}))
      issue = forms.IntegerField(help_text=_("Issue"), min_value=1, initial=1,
                                 widget=forms.NumberInput(attrs={'required': 'required'}))
      issue_year = forms.IntegerField(help_text=_("Issue year"), min_value=1900, initial=2000, max_value=2100,
                                      widget=forms.NumberInput(attrs={'required': 'required'}))
      price = forms.DecimalField(help_text=_("Price"), max_digits=5, decimal_places=2,
                                 widget=forms.NumberInput(attrs={'required': 'required', 'step': '0.5'}))
new_contents: from django import forms
  from django.utils.translation import ugettext as _
  
  from egielda import settings
  
  
  class BookForm(forms.Form):
      publisher = forms.CharField(help_text=_("Publisher"), max_length=150,
                                  widget=forms.TextInput(attrs={'required': 'required'}))
      title = forms.CharField(help_text=_("Title"), max_length=150,
                              widget=forms.TextInput(attrs={'required': 'required'}))
      issue = forms.IntegerField(help_text=_("Issue"), min_value=1, initial=1,
                                 widget=forms.NumberInput(attrs={'required': 'required'}))
      issue_year = forms.IntegerField(help_text=_("Issue year"), min_value=1900, initial=2000, max_value=2100,
                                      widget=forms.NumberInput(attrs={'required': 'required'}))
      price = forms.IntegerField(help_text=_("Price (%s)") % getattr(settings, 'CURRENCY', 'USD'), initial=20,
                                 widget=forms.NumberInput(attrs={'required': 'required', 'step': '0.5'}))
subject: Improve Price field behavior