validationError was moved to new file to avoid circular imports in the future
This commit is contained in:
+1
-7
@@ -1,11 +1,5 @@
|
||||
# coding=UTF-8
|
||||
|
||||
|
||||
class ValidationError(Exception):
|
||||
|
||||
def __init__(self, message):
|
||||
Exception.__init__(self)
|
||||
self.message = message
|
||||
from api.exceptions import ValidationError
|
||||
|
||||
|
||||
def validate_keys_exists(obj, *keys):
|
||||
|
||||
Reference in New Issue
Block a user