title: Django date is not recognized in the view
body: <p>The date is not recognized in the view . When I post, error came out like &quot;please enter the date&quot;</p>
  <p>There seems to be a problem with select name. Because of prefix.</p>
  <p>i need to use prefix because of multiple forms</p>
  <p>Is there a way to solve this?
  I need help .</p>
  <p>my models.py</p>
  <pre><code>class Grade(models.Model):
      title = models.CharField(max_length=255, verbose_name='title')
      date = models.DateTimeField(default=datetime.now, verbose_name='date')
      ...
  </code></pre>
  <p>my views.py</p>
  <pre><code>class StudentDetail(DetailView):
      model = Student
      template_name = 'student/view.html'
      context_object_name = 'student'
      form_class = AddConsultation
      second_form_class = AddGrade
  
      def get_object(self, queryset=None):
          return get_object_or_404(Student, pk=self.kwargs['pk'], school_year=self.kwargs['school_year'])
  
      ...
  
      def post(self, request, *args, **kwargs):
          student = get_object_or_404(Student, pk=kwargs['pk'])
          consultation_form = self.form_class(request.POST, prefix='consultation')
          grade_form = self.second_form_class(request.POST, prefix='grade')
  
          if grade_form.is_valid():
              grade = grade_form.save(commit=False)
              grade.created_to = student
              grade.created_by = request.user
              grade.save()
              return HttpResponseRedirect(request.META.get('HTTP_REFERER'))
  
          else:
              return HttpResponseRedirect(request.META.get('HTTP_REFERER'))
  
  
  </code></pre>
  <p>my template</p>
  <pre><code>...
                                &lt;dl class=&quot;&quot;&gt;
                                    &lt;dt&gt;date&lt;/dt&gt;
                                    &lt;dd&gt;
                                        &lt;ul class=&quot;select-box thumb3&quot;&gt;
                                            &lt;li&gt;
                                              &lt;select name=&quot;grade-date_year&quot; class=&quot;member__select-btn&quot;&gt;
                                                {% for i in year %}
                                                &lt;option value=&quot;{{i}}&quot;&gt;{{i}}year&lt;/option&gt;
                                                {% endfor %}
                                              &lt;/select&gt;
                                            &lt;/li&gt;
                                            &lt;li&gt;
                                              &lt;select name=&quot;grade-date_month&quot; class=&quot;member__select-btn&quot;&gt;
                                                {% for i in month %}
                                                &lt;option value=&quot;{{i}}&quot;&gt;{{i}}month&lt;/option&gt;
                                                {% endfor %}
                                              &lt;/select&gt;
                                            &lt;/li&gt;
                                            &lt;li&gt;
                                              &lt;select name=&quot;grade-date_day&quot; class=&quot;member__select-btn&quot;&gt;
                                                {% for i in day %}
                                                &lt;option value=&quot;{{i}}&quot;&gt;{{i}}day&lt;/option&gt;
                                                {% endfor %}
                                              &lt;/select&gt;
                                            &lt;/li&gt;
                                        &lt;/ul&gt;
                                    &lt;/dd&gt;
                                &lt;/dl&gt;
  ...
  </code></pre>