roject\customers\models.py",
line 85
on_delete=models.CASCADE,related_name="'zone's", null=True,
related_name='children'
^
SyntaxError: keyword argument repeated
I get the above error and the potion of my code causing it in models.p
, 2018 8:51 AM
To: Django users
Subject: SyntaxError: keyword argument repeated
django.setup()
File
"C:\Users\User\Anaconda3\envs\myprogv\lib\site-packages\django\__init__.py",
line 24, in setup
apps.populate(settings.INSTALLED_APPS)
File
"C:\Users\User\Anaconda3\envs\m
to_code
> File "", line 219, in
> _call_with_frames_removed
> File
> "C:\Users\User\Documents\cctv_project\openCV\cam_project\customers\models.py",
>
> line 85
> on_delete=models.CASCADE,related_name="'zone's"
File "", line 781, in get_code
>> File "", line 741, in source_to_code
>> File "", line 219, in
>> _call_with_frames_removed
>> File
>> "C:\Users\User\Documents\cctv_project\openCV\cam_project\customers\models.py",
>> line 85
>> on_delete=models.CASCADE,related_name="
4 matches
Mail list logo