blob: f619bc22528638f8dffbda599b0269d84a6d8e63 (
plain)
1
2
3
4
5
6
7
8
9
10
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
|