Re: null value in column violates not-null constraint

2017-05-25 Thread Ismail Sarenkapic
Thanks for answering man! On Thursday, May 25, 2017 at 11:44:08 PM UTC+2, Melvyn Sopacua wrote: > > Let me spell it out: > > If the error message complains about the user field > > And the code you provided is correct > > Then your database is out of sync with your model definition > > > > > >

Re: null value in column violates not-null constraint

2017-05-25 Thread Ismail Sarenkapic
>> On May 25, 2017 7:20 AM, "Ismail Sarenkapic" >> > wrote: > >> > >> Hi, I'm trying to create a digital marketplace site where users will be > >> able to register

Re: null value in column violates not-null constraint

2017-05-25 Thread Melvyn Sopacua
Let me spell it out: If the error message complains about the user field And the code you provided is correct Then your database is out of sync with your model definition On Thursday 25 May 2017 13:53:19 Ismail Sarenkapic wrote: > Tnx , > I know that i can manually select

Re: null value in column violates not-null constraint

2017-05-25 Thread Vijay Khemlani
gt;> >> Sincerely, >> Muhammad >> >> On May 25, 2017 7:20 AM, "Ismail Sarenkapic" > > wrote: >> >> Hi, I'm trying to create a digital marketplace site where users will be >> able to register and submit their products. >> I crea

Re: null value in column violates not-null constraint

2017-05-25 Thread Ismail Sarenkapic
> wrote: > > Hi, I'm trying to create a digital marketplace site where users will be > able to register and submit their products. > I created the Product model and connected it with User with foreign > key.Everything seems to be alright, but when I submit my product i get t

Re: null value in column violates not-null constraint

2017-05-25 Thread Ismail Sarenkapic
to create a digital marketplace site where users will > > > be able to register and submit their products. > > > I created the Product model and connected it with User with foreign > > > key.Everything seems to be alright, but when I submit my product i > > > get the fol

Re: null value in column violates not-null constraint

2017-05-25 Thread Muhammad M
ic" wrote: Hi, I'm trying to create a digital marketplace site where users will be able to register and submit their products. I created the Product model and connected it with User with foreign key.Everything seems to be alright, but when I submit my product i get the following err

Re: null value in column violates not-null constraint

2017-05-25 Thread Melvyn Sopacua
right, but when I submit my product i > get the following error: > > null value in column violates not-null constraint > it looks like relation between product and user is not properly > configured(regardless of my mixin that is suppose to handle it) > class Product(models.Mode

null value in column violates not-null constraint

2017-05-25 Thread Ismail Sarenkapic
ue in column violates not-null constraint it looks like relation between product and user is not properly configured(regardless of my mixin that is suppose to handle it) __