np, it appears I found the solution, just needed to call save() on
foreignkey before inserting new row into database:
uid = user_list.objects.get(user_id=request.session['uid']);
uid.save()
Is this a correct way ?
Thank you
--
You received this message because you are subscribed to the Google
hi
np, it appears I found the solution, just needed to call save() on
foreignkey before inserting new row into database:
uid = user_list.objects.get(user_id=request.session['uid']);
uid.save()
Is this a correct way of creating new row which has 1-2 foreignkeys ?
On Feb 12, 4:03 pm, webzy wrote:
Maybe your form has user_id instead of user_id_id as id?
On Feb 12, 3:20 am, keeper wrote:
> Hello guys,
>
> executing this code below from shell is ok, updates database and
> inserts the proper values:
>
> sub_domains(user_id=user_list.objects.get(user_id=1001),
> domain=domains.objects.get(doma
Hello guys,
executing this code below from shell is ok, updates database and
inserts the proper values:
sub_domains(user_id=user_list.objects.get(user_id=1001),
domain=domains.objects.get(domain='domain'),
sub_domain='boqo8').save()
But, trying to call the same code within a django views. I'
4 matches
Mail list logo