1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #23420 - broken warning for unbound naive datetime objects

Fixed issue with warning message displayed for unbound naive datetime
objects when USE_TZ is True. Adds unit test that demonstrates the issue
(discoverable when using a custom lookup in MySQL).
This commit is contained in:
Andy Chosak
2014-10-08 15:12:42 -04:00
committed by Anssi Kääriäinen
parent c548c8d0d1
commit ceb1ffcc8d
4 changed files with 48 additions and 5 deletions

View File

@@ -11,3 +11,11 @@ class Author(models.Model):
def __str__(self):
return self.name
@python_2_unicode_compatible
class MySQLUnixTimestamp(models.Model):
timestamp = models.PositiveIntegerField()
def __str__(self):
return self.name