mirror of
https://github.com/django/django.git
synced 2025-10-25 22:56:12 +00:00
Fixed #22316 -- Added time filters to TimeField on SQLite.
This was implemented for non-SQLite backends in 1.7 (as a side effect of #16187).
This commit is contained in:
committed by
Tim Graham
parent
6700c90935
commit
2dc93bb10a
@@ -11,6 +11,14 @@ from django.utils import six
|
||||
from django.utils.encoding import python_2_unicode_compatible
|
||||
|
||||
|
||||
class Alarm(models.Model):
|
||||
desc = models.CharField(max_length=100)
|
||||
time = models.TimeField()
|
||||
|
||||
def __str__(self):
|
||||
return '%s (%s)' % (self.time, self.desc)
|
||||
|
||||
|
||||
class Author(models.Model):
|
||||
name = models.CharField(max_length=100)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user