tiny work
This commit is contained in:
1 parent
9990cf647a
commit
edb32eaf7b
6 files changed
+21
-50
No files matched your search
+1
-1
@@ -79,7 +79,7 @@ class APIView(View):
|
||||
def success(self, data=None):
|
||||
return self.response({"error": None, "data": data})
|
||||
|
||||
def error(self, msg, err="error"):
|
||||
def error(self, msg="error", err="error"):
|
||||
return self.response({"error": err, "data": msg})
|
||||
|
||||
def _serializer_error_to_str(self, errors):
|
||||
|
||||
Reference in new issue
Block a user