ListView QuerySet with custom `count()`
Project description
Installation
$ [sudo] pip install django-listview-queryset
Pros
- custom
count()
Examples
ListViewQuerySet
from django_listview_queryset import ListViewQuerySet
class Name(models.Model):
objects = ListViewQuerySet.as_manager()
q = Name.objects.filter().order_by().setcount(42)
ListViewRawQuerySet
from django_listview_queryset import ListViewRawQuerySet
class Name(models.Model):
objects = ListViewRawQuerySet.as_manager()
q = Name.objects.raw('select * from table').setcount(42)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-listview-queryset-2020.12.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0f966ec1666962a2c39bee441b1893897b77f4ee6a72ded4c81eed924d83100 |
|
MD5 | 0e1bfb522ba9dc0a6cfb8bf594cfe73f |
|
BLAKE2b-256 | cc99f62a4c7f0d211909be090f1bbc5814b71e04ac504c7a35d8e08e2f8d88df |