Skip to main content

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)

readme42.com

Project details


Download files

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

Source Distribution

django-listview-queryset-2020.12.3.tar.gz (1.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page