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.
 
 
 
 

12 lines
331 B

  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