mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Fixed #21288 -- Fixed E126 pep8 warnings
This commit is contained in:
parent
a3690168cb
commit
b289fcf1bf
80 changed files with 646 additions and 634 deletions
|
@ -605,8 +605,7 @@ class ModelTest(TestCase):
|
|||
)
|
||||
|
||||
dicts = Article.objects.filter(
|
||||
pub_date__year=2008).extra(
|
||||
select={'dashed-value': '1'}
|
||||
pub_date__year=2008).extra(select={'dashed-value': '1'}
|
||||
).values('headline', 'dashed-value')
|
||||
self.assertEqual([sorted(d.items()) for d in dicts],
|
||||
[[('dashed-value', 1), ('headline', 'Article 11')], [('dashed-value', 1), ('headline', 'Article 12')]])
|
||||
|
@ -629,8 +628,7 @@ class ModelTest(TestCase):
|
|||
)
|
||||
|
||||
articles = Article.objects.filter(
|
||||
pub_date__year=2008).extra(
|
||||
select={'dashed-value': '1', 'undashedvalue': '2'})
|
||||
pub_date__year=2008).extra(select={'dashed-value': '1', 'undashedvalue': '2'})
|
||||
self.assertEqual(articles[0].undashedvalue, 2)
|
||||
|
||||
def test_create_relation_with_ugettext_lazy(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue