File tree Expand file tree Collapse file tree
sqlalchemy_serializer/lib/serializable Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ If you want to get exact fields:
105105
106106result = item.to_dict(only = (' non_sql_field' , ' method' , ' somefield' ))
107107```
108- ** Note** that if *** somefield*** is an SQLAlchemy instance, you get all it's
108+ ** Note** that if *** somefield*** is an SQLAlchemy instance, you get all its
109109serializable fields. So if you want to get only some of them, you should define it like below:
110110``` python
111111
@@ -523,7 +523,7 @@ serialize_only = ('some_field') # <--- WRONG it is actually not a tuple
523523```
524524
525525# Tests
526- To run tests and see tests coverage report just type the following command:(docker and docker- compose should be installed on you local machine)
526+ To run tests and see tests coverage report just type the following command: (docker and docker- compose should be installed on your local machine)
527527```bash
528528make test
529529```
Original file line number Diff line number Diff line change 44
55
66class Decimal (Base ):
7- def __init__ (self , str_format : str = "%H:%M:%S " ) -> None :
7+ def __init__ (self , str_format : str = "{} " ) -> None :
88 self .str_format = str_format
99
1010 def __call__ (self , value : decimal .Decimal ) -> str :
You can’t perform that action at this time.
0 commit comments