title: Django - Getting 'Required argument 'year' (pos 1) not found' error when trying to use datetime
body: <p>My model has this in it:</p>
  
  <pre><code>start_date = models.DateField(default=datetime.date, blank=True)
  stop_date = models.DateField(default=datetime.date, blank=True)
  </code></pre>
  
  <p>In my view I have:</p>
  
  <pre><code>start_date = datetime.date(int(request.POST.get('start_year')),
                             convert_month_to_int(request.POST.get('start_month')),
                             int(request.POST.get('start_day')))
  end_date = datetime.date(int(request.POST.get('end_year')),
                           convert_month_to_int(request.POST.get('end_month')),
                           int(request.POST.get('end_day')))
  </code></pre>
  
  <p>before I save to the DB.</p>
  
  <p>And the HTML is this:</p>
  
  <pre><code>                        &lt;label class="col-md-4"&gt; Start Date: &lt;/label&gt;
                          &lt;select class="selectpicker" data-width="auto" name="start_month" id="start_month" required&gt;
                              {% for month in month_list %}
                                  &lt;option value="{{ month }}" {% if path_start and path_start.1 == month %} selected {% endif %}&gt; {{ month }} &lt;/option&gt;
                              {% endfor %}
                          &lt;/select&gt;
                          /
                          &lt;select class="selectpicker" data-width="auto" name="start_day" id="start_day" required&gt;
                              {% for day in day_list %}
                                  &lt;option value="{{ day }}" {% if path_start and path_start.2 == day %} selected {% endif %}&gt; {{ day }} &lt;/option&gt;
                              {% endfor %}
                          &lt;/select&gt;
                          /
                          &lt;select class="selectpicker" data-width="auto" name="start_year" id="start_year" required&gt;
                              {% for year in year_list %}
                                  &lt;option value="{{ year }}" {% if path_start and path_start.0 == year %} selected {% endif %}&gt; {{ year }} &lt;/option&gt;
                              {% endfor %}
                          &lt;/select&gt;
                      &lt;/div&gt;
                      &lt;div class="row"&gt;
                          &lt;label class="col-md-4"&gt;End Date: &lt;/label&gt;
                          &lt;select class="selectpicker" data-width="auto" name="end_month" id="end_month"&gt;
                              {% for month in month_list %}
                                  &lt;option value="{{ month }}" {% if path_end and path_end.1 == month %} selected {% endif %}&gt; {{ month }} &lt;/option&gt;
                              {% endfor %}
                          &lt;/select&gt;
                          /
                          &lt;select class="selectpicker" data-width="auto" name="end_day" id="end_day"&gt;
                              {% for day in day_list %}
                                  &lt;option value="{{ day }}" {% if path_end and path_end.2 == day %} selected {% endif %}&gt; {{ day }} &lt;/option&gt;
                              {% endfor %}
                          &lt;/select&gt;
                          /
                          &lt;select class="selectpicker" data-width="auto" name="end_year" id="end_year"&gt;
                              {% for year in year_list %}
                                  &lt;option value="{{ year }}" {% if path_end and path_end.0 == year %} selected {% endif %}&gt; {{ year }} &lt;/option&gt;
                              {% endfor %}
                          &lt;/select&gt;
  </code></pre>
  
  <p>I get the error 'Required argument 'year' (pos 1) not found' when I try to save. I can't figure out why this is happening. Any advice would be appreciated. Thanks. </p>