Django querysets are the primary abstraction for retrieving objects from Django's ORM system
I'm trying to calculate a percentage with two values which are themselves aggregated. The SQL query that explains what I'm …
sql django django-queryset extraI have a Django action function which I would like to use on querysets based on different models. What is …
django action django-querysetSo, I'm using the Django update_or_create API to build my form data. It works fine...but, once built, …
python django django-queryset django-filterI have such a Book model: class Book(models.Model): authors = models.ManyToManyField(Author, ...) ... In short: I'd like to retrieve …
django django-queryset manytomanyfield django-ormIs it possible to combine a Django Haystack search with "built-in" QuerySet filter operations, specifically filtering with Q() instances and …
django django-queryset django-haystackI have a third-party function which gives me a filtered queryset (e.g. records with 'valid'=True) but I want …
django django-models filtering django-querysetI have been using Django for a couple of years now but I am struggling today with adding a HAVING …
django group-by sum django-queryset havingIs there a way to call filter on a queryset where one of the fieldnames is a variable? For example …
django django-models django-querysetI have a query that requires to filter exactly 2 authors with the ID Theoretically, Book.objects.filter(author__id=1, author__…
python django many-to-many django-querysetI am using django-mssql 1.6.2 package with django 1.7 to get one or several records of tables from sql server 2008. When I …
django python-3.x django-models django-queryset django-mssql