‘DeferredAttribute’ object is not callable django

I’m trying to solve this problem, but i can’t anyone can help me plz here’s my views.py :

from django.shortcuts import render from django.http import HttpResponse from .models import Product

def db(request): dat = ” p1 = Product(namee=’numberone’, pricee=500,Type=’m’) p1.save() dat = Product.namee() return HttpResponse(dat)