summaryrefslogtreecommitdiff
path: root/tbc/static/admin/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'tbc/static/admin/exceptions.py')
-rw-r--r--tbc/static/admin/exceptions.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tbc/static/admin/exceptions.py b/tbc/static/admin/exceptions.py
new file mode 100644
index 0000000..f619bc2
--- /dev/null
+++ b/tbc/static/admin/exceptions.py
@@ -0,0 +1,11 @@
+from django.core.exceptions import SuspiciousOperation
+
+
+class DisallowedModelAdminLookup(SuspiciousOperation):
+ """Invalid filter was passed to admin view via URL querystring"""
+ pass
+
+
+class DisallowedModelAdminToField(SuspiciousOperation):
+ """Invalid to_field was passed to admin view via URL query string"""
+ pass