Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 28, 2024
1 parent ad3444c commit 3c58e40
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions accounts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,12 @@ def get_initial(self):
Returns the initial data to use for forms on this view.
"""
initial = super().get_initial()
initial[
"receive_program_updates"
] = self.request.user.profile.receiving_program_updates
initial[
"receive_event_updates"
] = self.request.user.profile.receiving_event_updates
initial["receive_program_updates"] = (
self.request.user.profile.receiving_program_updates
)
initial["receive_event_updates"] = (
self.request.user.profile.receiving_event_updates
)
initial["receive_newsletter"] = self.request.user.profile.receiving_newsletter
return initial

Expand Down

0 comments on commit 3c58e40

Please sign in to comment.