invalid filter was passed to admin view via url querystring pass class disallowedmodeladmintofieldsuspiciousoperation the model is already registered pass class notregisteredexception invalid filter was passed to admin view via url querystring invalid to_field was passed to admin view via url query string the model is already registered the model is not registered
from django.core.exceptions import SuspiciousOperation


class DisallowedModelAdminLookup(SuspiciousOperation):
    

    pass


class DisallowedModelAdminToField(SuspiciousOperation):
    

    pass


class AlreadyRegistered(Exception):
    

    pass


class NotRegistered(Exception):
    

    pass