contest and contest_problems api.
add ordering for contest and submission models
This commit is contained in:
1 parent
ee2f5f5dd7
commit
53d0cae8ea
13 files changed
+160
-25
No files matched your search
@@ -4,7 +4,7 @@ from rest_framework import serializers
|
||||
|
||||
class DateTimeTZField(serializers.DateTimeField):
|
||||
def to_representation(self, value):
|
||||
# self.format = "%Y-%-m-%d %H:%M:%S %Z"
|
||||
# self.format = "%Y-%m-%d %H:%M:%S %Z"
|
||||
value = timezone.localtime(value)
|
||||
return super(DateTimeTZField, self).to_representation(value)
|
||||
|
||||
|
||||
Reference in new issue
Block a user