mirror of
https://github.com/django/django.git
synced 2025-09-26 12:09:19 +00:00
Fixed a typo from the refactoring in [8455]. With bonus test, too. Thanks, vung.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8724 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
38362a1276
commit
51836756d0
2 changed files with 7 additions and 1 deletions
|
@ -737,7 +737,7 @@ class DateQuerySet(QuerySet):
|
|||
self.query.select = []
|
||||
field = self.model._meta.get_field(self._field_name, many_to_many=False)
|
||||
assert isinstance(field, DateField), "%r isn't a DateField." \
|
||||
% field_name
|
||||
% field.name
|
||||
self.query.add_date_select(field, self._kind, self._order)
|
||||
if field.null:
|
||||
self.query.add_filter(('%s__isnull' % field.name, False))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue