| 1 |
from django.core.exceptions import SuspiciousOperation |
| 2 |
|
| 3 |
|
| 4 |
class DisallowedModelAdminLookup(SuspiciousOperation): |
| 5 |
"""Invalid filter was passed to admin view via URL querystring""" |
| 6 |
|
| 7 |
pass |
| 8 |
|
| 9 |
|
| 10 |
class DisallowedModelAdminToField(SuspiciousOperation): |
| 11 |
"""Invalid to_field was passed to admin view via URL query string""" |
| 12 |
|
| 13 |
pass |
| 14 |
|
| 15 |
|
| 16 |
class AlreadyRegistered(Exception): |
| 17 |
"""The model is already registered.""" |
| 18 |
|
| 19 |
pass |
| 20 |
|
| 21 |
|
| 22 |
class NotRegistered(Exception): |
| 23 |
"""The model is not registered.""" |
| 24 |
|
| 25 |
pass |