Commit c351c3da by Alexander Kryklia Committed by polesye

Fix typos.

parent e902ff65
...@@ -126,7 +126,7 @@ class RelativeTime(Field): ...@@ -126,7 +126,7 @@ class RelativeTime(Field):
should be python datetime.timedelta object, to be consistent with should be python datetime.timedelta object, to be consistent with
common time representation. common time representation.
At the same time, serialized representation should be"HH:MM:SS" At the same time, serialized representation should be "HH:MM:SS"
This format is convenient to use in XML (and it is used now), This format is convenient to use in XML (and it is used now),
and also it is used in frond-end studio editor of video module as format and also it is used in frond-end studio editor of video module as format
for start and end time fields. for start and end time fields.
...@@ -162,7 +162,7 @@ class RelativeTime(Field): ...@@ -162,7 +162,7 @@ class RelativeTime(Field):
def from_json(self, value): def from_json(self, value):
""" """
Convert value in 'HH:MM:SS' format to datetime.timedelta. Convert value is in 'HH:MM:SS' format to datetime.timedelta.
If not value, returns 0. If not value, returns 0.
If value is float (backward compatibility issue), convert to timedelta. If value is float (backward compatibility issue), convert to timedelta.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment