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
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
>>
>>
>> {"
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\" -
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 \&
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
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'),
6 matches
Mail list logo