Skip to content

Commit 1464f02

Browse files
committed
Fix QA issues
1 parent 060a6a1 commit 1464f02

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

example_project/main/common/mixins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class MenuItemMixin(object):
99
"""
1010
def get_context_data(self, **kwargs):
1111
context = super(MenuItemMixin, self).get_context_data(**kwargs)
12-
vattrs = inspect.getmembers(self, lambda a: not(inspect.isroutine(a)))
12+
vattrs = inspect.getmembers(self, lambda a: not (inspect.isroutine(a)))
1313
menu_kwargs = dict(a for a in vattrs if a[0].startswith('menu_'))
1414
context.update(menu_kwargs)
1515
return context

tests/unit/models/test_fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class Meta:
9191
form = TestableForm()
9292

9393
# Check
94-
assert type(form.fields['content'].widget) == forms.Textarea
94+
assert type(form.fields['content'].widget) is forms.Textarea
9595

9696
def test_sets_the_markup_widget_to_a_textarea_if_it_is_none(self):
9797
# Setup

0 commit comments

Comments
 (0)