Re: DeferredAttribute object in form

2019-08-18 Thread Kean
Hi Salimon, Thank you for the code and help. When I update to your code I get the following error in the browser Exception Type: AttributeError Exception Value: 'ModelFormOptions' object has no attribute 'concrete_fields' Im not sure why my models.py class Businessownercreate(models.M

Re: DeferredAttribute object in form

2019-08-17 Thread salimon jamiu olashile
It seems the model & form class names are clashing. If you want use the same name, you can import each module as a whole. Edited: from . import models, forms def editbusiness(request): > data = models.Businessownercreate.objects.all() > if request.method == "POST": > form = forms.Businessownercr