Re: Invalid pk \"1\" - object does not exist.

2019-02-26 Thread Kasper Laudrup
Hi Ons Dridi, On 2/26/19 12:24 PM, ons dridi wrote: Please ; can i any one explane for me what is django and what is the relation between it any the database ? please :( Have a look here: https://www.djangoproject.com/ Also, please don't highjack threads with unrelated questions. Kind reg

Re: Invalid pk \"1\" - object does not exist.

2019-02-26 Thread ons dridi
you ensure that a manager object with pk equals to 1 already > exists and therefore can be referred to . > > 'Hope it helps. > > Le lundi 25 février 2019 14:36:05 UTC+1, optvi...@gmail.com a écrit : >> >> getting error >> >> >> {"

Re: Invalid pk \"1\" - object does not exist.

2019-02-26 Thread anthony . tedde . 85
t case you ensure that a manager object with pk equals to 1 already exists and therefore can be referred to . 'Hope it helps. Le lundi 25 février 2019 14:36:05 UTC+1, optvi...@gmail.com a écrit : > > getting error > > > {"manager":["Invalid pk \"1\" -

Re: Invalid pk \"1\" - object does not exist.

2019-02-25 Thread opt visitor
n that table manager = models.ForeignKey('self', null=True, related_name='employee',on_delete=models.CASCADE) Hope this can be helpful Happy coding!!! Sent from my iPhone On Feb 25, 2019, at 7:36 AM, optvisi...@gmail.com wrote: getting error {"manager":["Invalid pk \&

Re: Invalid pk \"1\" - object does not exist.

2019-02-25 Thread Phako Perez
be helpful Happy coding!!! Sent from my iPhone > On Feb 25, 2019, at 7:36 AM, optvisi...@gmail.com wrote: > > getting error > > > {"manager":["Invalid pk \"1\" - object does not exist."]} > > > here is my model clas

Invalid pk \"1\" - object does not exist.

2019-02-25 Thread optvisitor
getting error {"manager":["Invalid pk \"1\" - object does not exist."]} here is my model class class Employee(models.Model): MANAGER = 'MGR' STANDARD = 'STD' EMPLOYEE_TYPES = ( (MANAGER, 'manager'),