Think you shouldn’t use false as a default for fields which are not bool

Sent from Mail for Windows 10

From: Antje Kazimiers
Sent: Sunday, 26 April 2020 17:40
To: [email protected]
Subject: Re: The database backend does not accept 0 as a value for AutoField.

setting default=False is odd for any field other than a BooleanField. I would 
take that out for the OneToOneField at least and see how things go.
Antje
On 4/26/20 4:19 PM, Mayur Bagul wrote:
Hello guys, 

im stucked with this error mentioned in subject.
below link redirect details about question.

https://stackoverflow.com/q/61427882/11351226

let me know how to get rid of this problem.


Thanking You.

-- 
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/cad442bf-e697-47c6-a0b4-3ce65bcef480%40googlegroups.com.
-- 
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/893f62fe-966e-d71b-8155-df9decf1786d%40gmail.com.

-- 
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/5ea5ae00.1c69fb81.7cd7b.285e%40mx.google.com.

Reply via email to