Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Small bug fix
  • Loading branch information
FredKhayat committed Dec 5, 2022
commit 77c74723e73db4340bdc9fda571bcad5f43c5342
7 changes: 2 additions & 5 deletions project/accounts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,15 +215,12 @@ class UserCivis(LoginRequiredMixin, View):
def get(self, request, username=None):
profile = get_object_or_404(Profile, user__username=username)
user = profile.user
civis = user.civis_set.all()
civis = user.civis.all()

return TemplateResponse(
request,
"user_civis.html",
{
"profile": profile,
"civis" : civis
},
{"profile": profile, "civis": civis},
)


Expand Down