what mistake is in this code?     def get(self,request,contact_id=None):         if contact_id:             contact = Contact.objects.get(pk=contact_id)         else:             contact = Contact()         ContactForm(instance=contact)         return render(request = request,                       template_name = 'customer_app/contact_edit.html',                       context = {'contact':contact,'form':form})单项选择题

A

the form variable isn't passed to the context

B

the form variable isn't instantiated.

C

the contact object retrieval is missing the primary key

D

there isn't anything wrong with this code.

登录即可查看完整答案

我们收录了全球超50000道真实原题与详细解析,现在登录,立即获得答案。

类似问题

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!