Similar to keys in a dictionary, keyword argument names are case
sensitive.  Try to pass in the lowercase version 'null':

    Raison_Non_Delivery_cd = models.ForeignKey(Raison,
on_delete=models.CASCADE, related_name='raisonNonDelivery', null=True)

-Jorge

On Wed, May 20, 2020 at 5:05 PM hajar <[email protected]> wrote:

> hello django users , I hope u r doing well !
>
>
> why can't I use Null in this case of foreign key , I hope you can see the
> picture below that's my class and the error
>
>
>
> [image: err.png]
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/ce736614-3ff9-47fa-885d-3f5b87160291%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/ce736614-3ff9-47fa-885d-3f5b87160291%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CANfN%3DK8aTYjLmtyTsPCSrViFFAd9ZTiF5S4W%3DwHr0EEFxNzNmQ%40mail.gmail.com.

Reply via email to