2013-05-16 07:14:28 +08:00
|
|
|
from django.core.exceptions import SuspiciousOperation
|
|
|
|
|
|
|
|
|
|
|
|
class DisallowedModelAdminLookup(SuspiciousOperation):
|
|
|
|
"""Invalid filter was passed to admin view via URL querystring"""
|
|
|
|
pass
|
2014-08-07 12:18:10 +08:00
|
|
|
|
|
|
|
|
|
|
|
class DisallowedModelAdminToField(SuspiciousOperation):
|
|
|
|
"""Invalid to_field was passed to admin view via URL query string"""
|
|
|
|
pass
|