You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

exceptions.py 331B

5 years ago
1234567891011
  1. from django.core.exceptions import SuspiciousOperation
  2. class DisallowedModelAdminLookup(SuspiciousOperation):
  3. """Invalid filter was passed to admin view via URL querystring"""
  4. pass
  5. class DisallowedModelAdminToField(SuspiciousOperation):
  6. """Invalid to_field was passed to admin view via URL query string"""
  7. pass