Skip to content

Commit 657d9b0

Browse files
authored
Update README.mkd
1 parent e3eb3da commit 657d9b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.mkd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Cheat Sheet
7171

7272
```python
7373
# Import the main DDF features
74-
from ddf import N, G, F, M, C, P, teach
74+
from ddf import N, G, F, M, C, P, teach # meaning: New, Get, ForeignKey, Mask, Copier, Print, teach
7575
```
7676

7777
```python
@@ -101,13 +101,13 @@ assert instance.address == 'Street TPA, 632 - BR'
101101

102102
```python
103103
# `C` copies data from one field to another
104-
instance = N(Book, address_formatted=C('address'), address=D('Street ___, ### \- --'))
104+
instance = N(Book, address_formatted=C('address'), address=M('Street ___, ### \- --'))
105105
assert instance.address_formatted == 'Street TPA, 632 - BR'
106106
```
107107

108108
```python
109109
# `teach` teaches DDF in how to build an instance
110-
teach(Book, address=M'Street ___, ### !- --'))
110+
teach(Book, address=M('Street ___, ### !- --'))
111111
instance = G(Book)
112112
assert instance.address == 'Street TPA, 632 - BR'
113113
```

0 commit comments

Comments
 (0)