question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Boolean field problem

See original GitHub issue

If field has default=True and during import CSV-file has value “0” (False) then will be save True value. Please, fix bug in fields.Field.clean: if not value and self.default != NOT_PROVIDED:

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
liminspacecommented, Jun 12, 2018

@vbhat0891 I don’t recommend you use this package. You’ll have a lot of problem with it.

1reaction
omidrahacommented, Oct 5, 2017

Currently for `NullBooleanField’ exported data are:

true -> "1"
false -> "0"
null -> ""

But, what i expected:

true -> true
false -> false
null -> null

Read more comments on GitHub >

github_iconTop Results From Across the Web

Problems with querying boolean fields created in Access
Cause. A Boolean field contains values of True and False only. Some applications, such as Microsoft Access, use the Boolean field type.
Read more >
Object.Filter() error using boolean fields - django
This is caused by Django 3.1.x. More info here: https://github.com/ESSolutions/django-mssql-backend/issues/69.
Read more >
Null Boolean Field Error - Power Platform Community - Microsoft
When it encounters a NULL coming in from Excel in a boolean field it produces an error stating that SQL expects type boolean,...
Read more >
What are the problems with boolean variables? [closed]
This boolean problem is not only related to programming itself. Databases have the same issue in representing boolean values. Example:.
Read more >
Problem with computing a boolean field - Odoo
Hello,. I am trying to make appear a smart button when a user of the "leader group" is looking the view. I write...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found