_id cannot be null

2011-02-13 Thread keeper
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

Re: _id cannot be null

2011-02-13 Thread keeper
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:

Re: _id cannot be null

2011-02-12 Thread webzy
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

_id cannot be null

2011-02-11 Thread keeper
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'