title: 'User' object has no attribute 'date_format'
body: <p>views.py</p>
  
  <pre><code>settings=Settings.objects.get(user=2)
      if user.date_format == '0':
          date=datetime.datetime.strptime('%m/%d/%Y').strftime('%d/%m/%Y')
      else:
              date=datetime.datetime.strptime('%d/%m/%Y').strftime('%m/%d/%Y')  
      if request.method == 'POST':            
          reportform = ReportForm(instance=report,data=request.POST)
          if reportform.is_valid():
              report = reportform.save(commit=False) 
              report.user = request.user
              report.save()
              return redirect('/member/media/')
  </code></pre>
  
  <p>models.py</p>
  
  <pre><code>class Settings(models.Model):
      user = models.ForeignKey(User, null=True)
      date_format = models.CharField('Date format', max_length=100)
      time_format = models.CharField('Time format', max_length=100)
  
  class Report(models.Model):
      manual_date = models.DateField('Another date', null=True, blank=True)
      manual_time = models.TimeField('Another time', null=True, blank=True)
  </code></pre>
  
  <p>template is</p>
  
  <pre><code> {{ form.manual_date }}{{ form.manual_date.errors }}
                              &lt;/td&gt;
                              &lt;td&gt;
                                  {{ form.manual_time }}{{ form.manual_time.errors }}
                              &lt;/td&gt;
  </code></pre>
  
  <p>To convert the date and time format in views, assumption is if date_format value is '0' the date should be of dd/mm/yy format,if value is '1' it gives the format of (mm/dd/yyyy).I know the error is in 2nd line in views.py, need help to solve.</p>