mirror of
https://github.com/django/django.git
synced 2025-08-01 17:42:56 +00:00
25 lines
507 B
Python
25 lines
507 B
Python
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
|
|
|
|
|
|
class AlreadyRegistered(Exception):
|
|
"""The model is already registered."""
|
|
|
|
pass
|
|
|
|
|
|
class NotRegistered(Exception):
|
|
"""The model is not registered."""
|
|
|
|
pass
|