Posts by Michel Sabchuk • 181 points
2 posts
-
2
votes2
answers230
viewsA: Working with querysets and Celery
You really can’t pass queryset to Celery, you need to pass a serializable object, and you’re probably using json as a serialization method, so you have to pass something that’s compatible with json.…
-
3
votes1
answer178
viewsA: What is Lazy, Laziness in Python/Django?
In the case of querysets, it means that it does not use the database until it is "spent". The example that Django itself offers clarifies well: >>> q =…