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)