Re: insert or update on table "app_job" violates foreign key constraint "app_job_user_id_f90a6dd9_fk_accounts_user_id" DETAIL: Key (user_id)=(3) is not present in table "accounts_user".

2019-07-08 Thread Sonu bhavsar
hello please first chak the value which you wants to insert you django server didn't get the foreign key which you had diffiend so this is the value error according to me On Mon 8 Jul, 2019, 1:21 AM Aayush Bhattarai, wrote: > [image: Capture.PNG] > > > *I have used a function-based View to get

insert or update on table "app_job" violates foreign key constraint "app_job_user_id_f90a6dd9_fk_accounts_user_id" DETAIL: Key (user_id)=(3) is not present in table "accounts_user".

2019-07-07 Thread Aayush Bhattarai
[image: Capture.PNG] *I have used a function-based View to get data from post Request. I need to get many data that also include a primary key field too. I need to push data into two models. While doing so, I encountered an error.* #accounts models.py from django.db import models class User(

Re: insert or update

2007-08-21 Thread George Vilches
r_f_d wrote: > As far as insert or update, just overide the save method within the > class. It is something that must be done for each class, but what I > have done (for essentially the same purpose) is override save() on > each model I need to log the action for like so: &

Re: insert or update

2007-08-21 Thread r_f_d
As far as insert or update, just overide the save method within the class. It is something that must be done for each class, but what I have done (for essentially the same purpose) is override save() on each model I need to log the action for like so: def save(): # if id exists, this record

Re: insert or update

2007-08-21 Thread Malcolm Tredinnick
On Tue, 2007-08-21 at 16:33 -0400, George Vilches wrote: > Lic. José M. Rodriguez Bacallao wrote: > > how can I vote? > > There's no official voting mechanism for the non-Django developers > right now, it's mostly just based on putting a comment on the Trac > ticket Please don't do this. It's

Re: insert or update

2007-08-21 Thread Peter Melvyn
On 8/21/07, George Vilches <[EMAIL PROTECTED]> wrote: > or in the mailing list saying that you would use this > functionality for such and such a reason. OK, I'll specify the reason We use web as administrative/configuration tool for non-web based back-office server and we need to synchronize i

Re: insert or update

2007-08-21 Thread George Vilches
Lic. José M. Rodriguez Bacallao wrote: > how can I vote? There's no official voting mechanism for the non-Django developers right now, it's mostly just based on putting a comment on the Trac ticket or in the mailing list saying that you would use this functionality for such and such a reason.

Re: insert or update

2007-08-21 Thread Lic. José M. Rodriguez Bacallao
how can I vote? On 8/21/07, Peter Melvyn <[EMAIL PROTECTED]> wrote: > > > On 8/21/07, George Vilches <[EMAIL PROTECTED]> wrote: > > > http://code.djangoproject.com/ticket/4879 > > If you need that functionality, add a vote for it. :) > > Yes, I need such functionality :) > > Peter > > > > -- Li

Re: insert or update

2007-08-21 Thread Peter Melvyn
On 8/21/07, George Vilches <[EMAIL PROTECTED]> wrote: > http://code.djangoproject.com/ticket/4879 > If you need that functionality, add a vote for it. :) Yes, I need such functionality :) Peter --~--~-~--~~~---~--~~ You received this message because you are subs

Re: insert or update

2007-08-21 Thread George Vilches
Lic. José M. Rodriguez Bacallao wrote: > how can I know programatically if an operation in a model is an insert, > update or delete? > I just want to extend the admin log to log any action in my application > models. Right now, > admin app only log actions executed by itself. Part of your quest

insert or update

2007-08-21 Thread Lic. José M. Rodriguez Bacallao
how can I know programatically if an operation in a model is an insert, update or delete? I just want to extend the admin log to log any action in my application models. Right now, admin app only log actions executed by itself. -- Lic. José M. Rodriguez Bacallao Cupet