new_contents: from django import forms
  
  from .models import Search
  
  class SearchForm(forms.Form):
      q = forms.CharField()
  
      def get_queryset(self):
          return Search.objects.matches(self.cleaned_data['q'])
subject: Add the search form.