django-querysetsequence
django-querysetsequence copied to clipboard
Chain multiple (disparate) QuerySets in Django
See [Django 4.1 release notes](https://docs.djangoproject.com/en/dev/releases/4.1/#models): > [`QuerySet.iterator()`](https://docs.djangoproject.com/en/dev/ref/models/querysets/#django.db.models.query.QuerySet.iterator) now supports prefetching related objects as long as the `chunk_size` argument is provided. In older versions, no prefetching was done.
See [Django 4.1 release notes](https://docs.djangoproject.com/en/dev/releases/4.1/#models): > [`QuerySet.bulk_create()`](https://docs.djangoproject.com/en/dev/ref/models/querysets/#django.db.models.query.QuerySet.bulk_create) now supports updating fields when a row insertion fails uniqueness constraints. This is supported on MariaDB, MySQL, PostgreSQL, and SQLite 3.24+. > The...
See [Django 4.1 release notes](https://docs.djangoproject.com/en/dev/releases/4.1/#asynchronous-orm-interface) and the [corresponding documentation](https://docs.djangoproject.com/en/dev/topics/db/queries/#async-queries) and the [list of methods](https://docs.djangoproject.com/en/dev/ref/models/querysets/#methods-that-do-not-return-querysets).
**Describe the bug** I've tried to use `QuerySetSequence.order_by()` with `models.F`, but it fails with the following error message ```shell Internal Server Error: /backend/planning/plans/ Traceback (most recent call last): File "/Users/tui/Library/Caches/pypoetry/virtualenvs/fwlap-backend-vuErbnoo-py3.9/lib/python3.9/site-packages/django/core/handlers/exception.py",...
Hi @clokep , Please, take a look at this PR. I saw issues with Django admin (for example https://github.com/clokep/django-querysetsequence/issues/65) and with other packages using **querysetsequence** . All these issues have...
Hello, I'm trying to integrate django-querysetsequence with django-datatable-view (https://github.com/pivotal-energy-solutions/django-datatable-view) When this component executes a search a NotImplementedError: QuerySetSequence does not implement distinct() error arrises. So I would like to know...
Hi @clokep, Please, take a look at this PR. As we have discussed in https://github.com/clokep/django-querysetsequence/issues/96 This PR should fix it and shouldn't break anything. Please, let me know wdyt 🙏...
I try to sort with an annotate field that possible None value. But look like [django-querysetsequence](https://github.com/clokep/django-querysetsequence) doesn't suport it Reproduce step: ``` room_options is a JSON field that contains branding...
In my Django project, I have a `FeedSerializer` that contains two nested serializers `(ArticleSerializer and SubjectSerializer)`. The goal is to use `QuerySetSequence` in the `FeedListApiView` in views.py to combine data...