Modelform foreign key not working

2021-10-20 Thread Aruna Priya Nagarajan
Am new to django, and I am trying to create a form using modelform. The form has foerign key value (connection_type below in forms.py) and its not displaying the values it is referring to. For the image below, the columns, Connection name : displayed Connection type : text box has not appeared E

Re: Modeform Foreign key column not working

2021-10-21 Thread Aruna Priya Nagarajan
yeah, it is a foreign key and I have put integer field instead of foreign key in the model. I changed it now and its working by itself without specifying ModelChoiceField. Thanks for your help!! On Wednesday, 20 October 2021 at 16:07:04 UTC+1 sutharl...@gmail.com wrote: > is `ConnectionTyp

Re: Modeform Foreign key column not working

2021-10-26 Thread Aruna Priya Nagarajan
odules.objects.filter(user_id=request.user.id).filter(module_id=1).count(),"UserIsAuth":request.user.is_authenticated}) Anyone can help me on this?? Thanks, Aruna On Saturday, 23 October 2021 at 18:53:38 UTC+1 sutharl...@gmail.com wrote: > cool! mention not :) > > On Th