Skip to content

Commit fe732b9

Browse files
committed
added better description for mapping
1 parent 28d22dc commit fe732b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public_user_info = mapper.to(PublicUserInfo).map(user_info, fields_mapping={
100100
"full_name": user_info.name
101101
})
102102
```
103-
Preregister and map:
103+
Preregister and map. Source field should start with class name followed by period sign and field name:
104104
```python
105105
mapper.add(UserInfo, PublicUserInfo, fields_mapping={"full_name": "UserInfo.name"})
106106
public_user_info = mapper.map(user_info)

0 commit comments

Comments
 (0)