1
0
mirror of https://github.com/django/django.git synced 2025-10-24 22:26:08 +00:00

[soc2009/multidb] Made filter SQL generation lazy when we aren't filtering on a specific field, also added additional tests

git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/multidb@10923 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Alex Gaynor
2009-06-04 16:53:45 +00:00
parent fbb6fda5f6
commit 91520ec364
3 changed files with 30 additions and 8 deletions

View File

@@ -2,6 +2,10 @@ from django.db import models
class Book(models.Model):
title = models.CharField(max_length=100)
published = models.DateField()
def __unicode__(self):
return self.title
class Meta:
ordering = ('title',)