mirror of
https://github.com/django/django.git
synced 2025-11-25 05:04:26 +00:00
Fixed #12818. SQLite now properly quotes strings for date extraction and truncation. Thanks, SmilyChris.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12573 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
d76fc2c2a0
commit
2f45af6f58
3 changed files with 45 additions and 4 deletions
|
|
@ -15,6 +15,11 @@ class Person(models.Model):
|
|||
def __unicode__(self):
|
||||
return u'%s %s' % (self.first_name, self.last_name)
|
||||
|
||||
class SchoolClass(models.Model):
|
||||
year = models.PositiveIntegerField()
|
||||
day = models.CharField(max_length=9, blank=True)
|
||||
last_updated = models.DateTimeField()
|
||||
|
||||
qn = connection.ops.quote_name
|
||||
|
||||
__test__ = {'API_TESTS': """
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue