#31324: Filter JSONField using `=None` -------------------------------------+------------------------------------- Reporter: Nikolay Tretyak | Owner: Nikolay | Tretyak Type: Bug | Status: assigned Component: Database layer | Version: 3.0 (models, ORM) | Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Nikolay Tretyak): But if I have an object `a = A.objects.create()` which is stored in the database as {{{field = NULL}}} {{{A.objects.filter(pk=a.pk, field=a.field).exists() is False}}} which is very strange. So, to update the Django version in my project I have to migrate all {{{NULL}}} values to {{{'null'}}}? -- Ticket URL: <https://code.djangoproject.com/ticket/31324#comment:7> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/067.9633dc877e324e5bbb298746ed79b40a%40djangoproject.com.