add test case upload api
This commit is contained in:
1 parent
e34da1ac33
commit
48f79ec504
13 files changed
+103
-17
No files matched your search
@@ -11,7 +11,7 @@ class JSONField(serializers.Field):
|
||||
|
||||
class DateTimeTZField(serializers.DateTimeField):
|
||||
def to_representation(self, value):
|
||||
self.format = "%Y-%-m-%d %H:%M:%S"
|
||||
self.format = "%Y-%-m-%d %H:%M:%S %Z"
|
||||
value = timezone.localtime(value)
|
||||
return super(DateTimeTZField, self).to_representation(value)
|
||||
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ from django.utils.decorators import method_decorator
|
||||
from django.views.decorators.csrf import csrf_exempt
|
||||
from django.views.generic import View
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
logger = logging.getLogger("")
|
||||
|
||||
|
||||
class ContentType(object):
|
||||
|
||||
Reference in new issue
Block a user