title: 'DeferredAttribute' object is not callable
body: <p>I'm working on a simple django project, but i face this problem that  you see  below so, i want a solution because i really  got tired </p>
  
  <p>I expect the output of that code to be numberone but the actual output is this  error :</p>
  
  <pre><code>TypeError at /db/
  'DeferredAttribute' object is not callable
  Request Method: GET
  Request URL:    http://127.0.0.1:8000/db/
  Django Version: 2.1.5
  Exception Type: TypeError
  Exception Value:    
  'DeferredAttribute' object is not callable
  Exception Location: /home/mohammed/Desktop/New life programming/python     /pythonDjano/Filecorse/NewDjango/MohammedAlaa/Abdullah/views.py in db, line     16
  Python Executable:  /usr/bin/python3
  Python Version: 3.6.8
  Python Path:    
  ['/home/mohammed/Desktop/New life '
   'programming/python/pythonDjano/Filecorse/NewDjango/MohammedAlaa',
   '/usr/local/lib/python3.6/dist-packages/pip-19.1.1-py3.6.egg',
   '/usr/lib/python36.zip',
   '/usr/lib/python3.6',
   '/usr/lib/python3.6/lib-dynload',
   '/home/mohammed/.local/lib/python3.6/site-packages',
   '/usr/local/lib/python3.6/dist-packages',
   '/usr/lib/python3/dist-packages']
   Server time:   Sat, 31 Aug 2019 11:13:18 +0000
  </code></pre>
  
  <h1>views.py</h1>
  
  <pre><code>from django.shortcuts import render
  from django.http import HttpResponse
  from .models import Product
  def Home(request):
      return HttpResponse('Welcome, Mohammed Alaa :)')
  def htm(request):
      return render(request,'htm.html',{'hello':"hello Mohammed Abo Alaa again:)",                             'days':['wed', 'fri', 'thru']
          })
  def others(request):
      return HttpResponse('Welcome, Mohammed Alaa :) form others')
  
  def db(request):
      dat = ''
      p1 = Product(namee='numberone', pricee=500,Type='m')
      p1.save()
      dat = Product.namee()
      return HttpResponse(dat)
  </code></pre>