Hi, I ran into a strange problem when i switched from using mysqlclient to 
mysql-connector/python.

In practice: 
class Foo(models.Model):
 bar = models.IntegerField(default=0, null=False)

queryset = Foo.objects.all().filter(bar=0)
print(queryset[0].bar)  # prints None


Anyone know a fix for this?

Using python 3.6.6, Django 2.0.3.0-

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/22583a05-f803-4e65-ac00-6549e74698f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to