Top "Django-orm" questions

Django's ORM system, comprising its queryset and model systems.

Serializing Foreign Key objects in Django

I have been working on developing some RESTful Services in Django to be used with both Flash and Android apps. …

python django django-orm
'unicode' object has no attribute 'get'

I am writing django application and stuck with the error 'unicode' object has no attribute 'get' I saw a lot …

python django unicode django-orm attributeerror
Does Django queryset values_list return a list object?

I have a Django app where users post photos, and other leave comments under the photos. When a comment is …

django django-models django-orm
Django filter through multiple fields in a many-to-many intermediary table

I have the following models in my django project: class Video(models.Model): media = models.ForeignKey(Media) class Media(models.…

django many-to-many django-orm
Specifying limit and offset in Django QuerySet wont work

I'm using Django 1.6.5 and have MySQL's general-query-log on, so I can see the sql hitting MySQL. And I noticed that …

python django django-models django-orm
Django orm get latest for each group

I am using Django 1.6 with Mysql. I have these models: class Student(models.Model): username = models.CharField(max_length=200, unique = …

python django django-queryset django-orm
In Django, how do you make a model refer to itself?

Assume we have class Employee. I want to have a field which references a different instance of the same class. …

django django-models django-orm
What is the default order of a list returned from a Django filter call?

Short Question What is the default order of a list returned from a Django filter call when connected to a …

python django postgresql sql-order-by django-orm
Annotating a Sum results in None rather than zero

I'm making a QA site that is similar to the page you're on right now. I'm attempting to order answers …

django django-models django-orm
Django: is there a way to count SQL queries from an unit test?

I am trying to find out the number of queries executed by a utility function. I have written a unit …

django django-orm django-testing