Skip to content

Commit

Permalink
Quick fix flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Aug 22, 2023
1 parent 7d60467 commit 7a0e9b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lemarche/tenders/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ def save_formset(self, request, form, formset, change):
Set Note author on create
"""
for form in formset:
if type(form.instance) == Note:
if type(form.instance) is Note:
if not form.instance.id and form.instance.text and change:
form.instance.author = request.user
super().save_formset(request, form, formset, change)
Expand Down Expand Up @@ -527,7 +527,7 @@ def save_formset(self, request, form, formset, change):
Set Note author on create
"""
for form in formset:
if type(form.instance) == Note:
if type(form.instance) is Note:
if not form.instance.id and form.instance.text and change:
form.instance.author = request.user
super().save_formset(request, form, formset, change)
Expand Down
2 changes: 1 addition & 1 deletion lemarche/users/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def save_formset(self, request, form, formset, change):
Set Note author on create
"""
for form in formset:
if type(form.instance) == Note:
if type(form.instance) is Note:
if not form.instance.id and form.instance.text and change:
form.instance.author = request.user
super().save_formset(request, form, formset, change)
Expand Down

0 comments on commit 7a0e9b5

Please sign in to comment.