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.7.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a61a7fbf76518e3408257a33a032cb165e779ac01ab5d36e26c34aaf64eb0b34 |
|
MD5 | fc9aae14e5f17f586d15cd424c3d5eaf |
|
BLAKE2b-256 | 889c6621c5650653780d549e64265b85dbae18dc3a7c96b1bae663eaac06a7b7 |