Skip to content

Commit

Permalink
Fix groups creation in my account
Browse files Browse the repository at this point in the history
  • Loading branch information
tudoramariei committed Jan 27, 2024
1 parent 19d3049 commit 1e38552
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/donations/views/my_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ def get(self, request, *args, **kwargs):
for donor in donors:
index = donor.date_created.year
if index in years:
if index not in grouped_donors:
grouped_donors[index] = []
grouped_donors[index].append(donor)

context = {
Expand Down

0 comments on commit 1e38552

Please sign in to comment.