Re: AttributeError 'QuerySet' object has no attribute '_meta'

2019-08-18 Thread Kean Dumba
Ok thanks is there a way to call all objects, as this is more user friendly and efficient when potentially editing many object fields? On Sun, 18 Aug 2019 at 18:05, Daniel Roseman wrote: > You can't pass *all* the objects to the form. You have to get the specific > one you want to edit and pass

AttributeError 'QuerySet' object has no attribute '_meta'

2019-08-18 Thread Daniel Roseman
You can't pass *all* the objects to the form. You have to get the specific one you want to edit and pass that as the instance. -- 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,

AttributeError 'QuerySet' object has no attribute '_meta'

2019-08-18 Thread Kean
Hi, New to Django but trying to stick with it. I have created a model form, which creates ok. I am trying to edit records. I have the following, but keep getting the QuerySet object has no attribute '_meta' in the browser. my views.py def editbusiness(request): data =