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 Jul 29, 2024
1 parent 9b4f034 commit 45f40a8
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 45f40a8

Please sign in to comment.