add test case upload api

This commit is contained in:
virusdefender
2017-01-25 16:29:00 +08:00
parent e34da1ac33
commit 48f79ec504
13 changed files with 103 additions and 17 deletions

View File

@@ -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)

View File

@@ -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):