File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ class SomeModel(db.Model, SerializerMixin):
9898result = item.to_dict(rules = (' non_sql_field' , ' method' ))
9999```
100100** Note** that method or a function should have no arguments except *** self*** ,
101- in order to let serializer call it without hesitations .
101+ in order to let serializer call it without hesitation .
102102
103103If you want to get exact fields:
104104``` python
@@ -421,7 +421,7 @@ I'll implement this logic later if any of users needs it.
421421
422422
423423# Timezones
424- To keep `datetimes` consistent its better to store it in the database normalized to ** UTC ** .
424+ To keep `datetimes` consistent it is better to store it in the database normalized to ** UTC ** .
425425But when you return response, sometimes (mostly in web, mobile applications can do it themselves)
426426you need to convert all `datetimes` to user' s timezone.
427427So you need to tell serializer what timezone to use.
You can’t perform that action at this time.
0 commit comments