Hi,

New to Django, struggling at every point, but still learning.

I have created an edit form, however when I run the edit, the below 
response is returned to all object fields in the form, allbeit suffix 
varies.

<django.db.models.query_utils.DeferredAttribute object at 0x10d9d60d0>

Please see my views.py

def editbusiness(request):
data = Businessownercreate.objects.all() 
if request.method == "POST": 
form = Businessownercreate(request.POST, instance=Businessownercreate)
if form.is_valid():
form.save()
return redirect("accounts:editremovebusiness")
else:
form = forms.Businessownercreate(instance=Businessownercreate)
return render(request, 'editbusiness.html', { 'form':form })

Please advise if anyone has seen this issue, cause and resolution?

Best,

K


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d9b83ad6-6665-486d-b739-f76c846a383c%40googlegroups.com.

Reply via email to