Hi,
Plz check about:
HttpResponseRedirect('/gspapp/ModelGSPRequestList')
On Sat, Feb 15, 2020, 13:15 Dilipkumar Noone wrote:
> Hi Maninder,
>
> This error seems because i used choice field which actually use names as
> values but django expects the id.
>
> As Django automatically creates a
Hi Maninder,
This error seems because i used choice field which actually use names as
values but django expects the id.
As Django automatically creates a ModelChoicefield for a Foreign Key which
use the correct values,i modified the code as below in forms.py.
I have a requirement to populate
I am a Django learner.
1.I have a requirement to create the multiple forms in a single page for a
model.
2.So i created the formset using modelformset_factory.
3.I have 2 models.
a)ModelRegister b)ModelGSPRequest. 4.ModelGSPRequest has a field named
registered_model which is a foreignKey to
3 matches
Mail list logo