Skip to main content

ListView QuerySet with custom `count()`

Project description

Installation

$ [sudo] pip install django-listview-queryset

Pros

  • custom count()

Classes

class __doc__
django_listview_queryset.ListViewQuerySet
django_listview_queryset.ListViewRawQuerySet

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)

django-readme-generator

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-listview-queryset, version 2019.11.15
Filename, size File type Python version Upload date Hashes
Filename, size django-listview-queryset-2019.11.15.tar.gz (1.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page