Skip to content

Commit

Permalink
Fix email breaking deny event
Browse files Browse the repository at this point in the history
  • Loading branch information
eguy006 authored and nlMeminger committed Nov 12, 2019
1 parent b2783b9 commit 8dffbcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grasa_event_locator/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,8 +615,8 @@ def approveEdit(request, editID):

def denyEdit(request, editID):
if request.user.is_authenticated and request.user.userinfo.isAdmin and not request.user.userinfo.isPending:
send_email([str(User.objects.get(pk=p.user_id.user_id))], "GRASA - Event Edit Denied", "Your edited event has been denied. Contact GRASA for details.")
p = Program.objects.get(pk=editID)
send_email([str(User.objects.get(pk=p.user_id.user_id))], "GRASA - Event Edit Denied", "Your edited event has been denied. Contact GRASA for details.")
p.delete()
return redirect("admin_page")
else:
Expand Down

0 comments on commit 8dffbcb

Please sign in to comment.