title: Django DateTimeField input Form
body: <p>I have a <code>DateTime</code> field in my model and I'm looking for a simple way to make it look okay in the form. Something like the <code>SelectDateWidget</code>. </p>
  
  <p>I've been looking at a lot of similar questions, and it seems really tricky to get something like the admin datepicker or jquery to work. (This is my first time using Django, and I have never used jquery before).</p>
  
  <p>So, I'm using the <code>ChoiceField</code> instead from <a href="https://stackoverflow.com/questions/4665719/add-fields-to-django-modelform-that-arent-in-the-model">this</a> example, but I can't get it to work either. I get error name <em>'self' is not defined</em>. Can I not use <code>self</code> here? Or is there some better <em>simple</em> way to do this? I don't need a fancy datepicker, just something that makes the input easy for the user.   </p>
  
  <pre><code>class ProjectForm(ModelForm):
      startdate = forms.DateField()
      starthour = forms.ChoiceField(choices=((6,"6am"),(7,"7am"),(8,"8am"),(9,"9am"), ...))
      startminute = forms.ChoiceField(choices=((0,":00"),(15,":15"),(30,":30"),(45,":45")))
  
      class Meta:
          model = Project
  
      def clean(self):
          starttime = time(int(self.cleaned_data.get('starthour')), 
                           int(self.cleaned_data.get('startminute')))
          return self.cleaned_data
  
      try:
          self.instance.start_time = datetime.datetime.combine(
              self.cleaned_data.get("startdate"), starttime)
      except TypeError:
          raise forms.ValidationError("")
  </code></pre>