Skip to content

Commit

Permalink
Merge pull request #301
Browse files Browse the repository at this point in the history
remove explicit class call from super call
  • Loading branch information
kennethlove authored Oct 9, 2024
2 parents 43e1552 + dcfa773 commit ca18d0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions braces/views/_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def form_valid(self, form):
"""
Set the "form valid" message for standard form validation
"""
response = super(FormValidMessageMixin, self).form_valid(form)
response = super().form_valid(form)
self.messages.success(
self.get_form_valid_message(), fail_silently=True
)
Expand All @@ -152,7 +152,7 @@ def delete(self, *args, **kwargs):
"""
Set the "form valid" message for delete form validation
"""
response = super(FormValidMessageMixin, self).delete(*args, **kwargs)
response = super().delete(*args, **kwargs)
self.messages.success(
self.get_form_valid_message(), fail_silently=True
)
Expand Down Expand Up @@ -189,7 +189,7 @@ def form_invalid(self, form):
"""
Set the "form invalid" message for standard form validation
"""
response = super(FormInvalidMessageMixin, self).form_invalid(form)
response = super().form_invalid(form)
self.messages.error(
self.get_form_invalid_message(), fail_silently=True
)
Expand Down

0 comments on commit ca18d0e

Please sign in to comment.