old_contents: from django.contrib.auth.forms import AuthenticationForm
  from django import forms
  from .models import PoolingUser
  
  
  class LoginForm(AuthenticationForm):
      username = forms.CharField(widget=forms.EmailInput(attrs={'placeholder': 'Email',
                                                                'class': 'form-control',
                                                                }))
      password = forms.CharField(widget=forms.PasswordInput(attrs={'placeholder': 'Password',
                                                                   'class': 'form-control',
                                                                   }))
  
  
  class SearchTrip(forms.Form):
      origin_id = forms.IntegerField()
      destination_id = forms.IntegerField()
      datetime = forms.DateTimeField()
  
  
  class PoolingUserForm(forms.ModelForm):
      class Meta:
          model = PoolingUser
          # Exclude the one-to-one relation with User
          fields = ['birth_date', 'driving_license']
  
new_contents: from django.contrib.auth.forms import AuthenticationForm
  from django import forms
  from .models import PoolingUser
  
  
  class LoginForm(AuthenticationForm):
      username = forms.CharField(widget=forms.EmailInput(attrs={'placeholder': 'Email',
                                                                'class': 'form-control',
                                                                }))
      password = forms.CharField(widget=forms.PasswordInput(attrs={'placeholder': 'Password',
                                                                   'class': 'form-control',
                                                                   }))
  
  
  class SearchTrip(forms.Form):
      """
      Pay attentions that id fields are meant to be hidden, since we suppose they come from
      an autocomplete AJAX request via an another CharField.
      """
      origin_id = forms.IntegerField()
      destination_id = forms.IntegerField()
      datetime = forms.DateTimeField()
  
  
  class PoolingUserForm(forms.ModelForm):
      class Meta:
          model = PoolingUser
          # Exclude the one-to-one relation with User
          fields = ['birth_date', 'driving_license']
  
subject: Add documentation for SearchTrip form