Yes, sorry:
I was hoping to have this function in the views.py return the same as when I put the query in the manage.py shell:
from accounts.models import Member
def addrecord(request):
return HttpResponse(Member.objects.all().filter(pin=113))
but as I call the view:
Request Method: GET
Request URL: http://127.0.0.1:8000/addrecord/
Django Version: 3.2.15
Exception Type: AttributeError
Exception Value:
'QuerySet' object has no attribute 'objects'