Skip to content

Commit

Permalink
Update alternative_views.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DonnieBLT committed Jan 6, 2024
1 parent e4f40db commit 976f0ec
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion website/alternative_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ def flag_issue2(request, issue_pk):
issue_pk = int(issue_pk)
issue = Issue.objects.get(pk=issue_pk)
userprof = UserProfile.objects.get(user=request.user)
print(UserProfile.objects.filter(issue_flaged=issue))
if userprof in UserProfile.objects.filter(issue_flaged=issue):
print("already flagged")
userprof.issue_flaged.remove(issue)
Expand Down

0 comments on commit 976f0ec

Please sign in to comment.