From fef378a2ac7f883fbb28552d95a85cbd97fb65bd Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 5 Jun 2023 17:10:22 +0100 Subject: [PATCH] . --- ...065_remove_long_condition_remove_long_sign.py | 16 ++++++++-------- rad/views.py | 3 +++ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/longs/migrations/0065_remove_long_condition_remove_long_sign.py b/longs/migrations/0065_remove_long_condition_remove_long_sign.py index 5145e2da..42a4eaed 100644 --- a/longs/migrations/0065_remove_long_condition_remove_long_sign.py +++ b/longs/migrations/0065_remove_long_condition_remove_long_sign.py @@ -10,12 +10,12 @@ class Migration(migrations.Migration): ] operations = [ - migrations.RemoveField( - model_name='long', - name='condition', - ), - migrations.RemoveField( - model_name='long', - name='sign', - ), + #migrations.RemoveField( + # model_name='long', + # name='condition', + #), + #migrations.RemoveField( + # model_name='long', + # name='sign', + #), ] diff --git a/rad/views.py b/rad/views.py index e98201a0..b0fec171 100644 --- a/rad/views.py +++ b/rad/views.py @@ -103,6 +103,9 @@ def cid_selector(request): def cid_scores_admin(request, cid): cid_user = CidUser.objects.filter(cid=cid).first() + if not cid_user: + raise Http404("CID not found") + return cid_scores(request, cid_user.cid, cid_user.passcode)