Skip to content

Commit ec77caf

Browse files
committed
Add imports to top-level example (#138).
1 parent 25f7af8 commit ec77caf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

couchdb/mapping.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
To define a document mapping, you declare a Python class inherited from
1616
`Document`, and add any number of `Field` attributes:
1717
18+
>>> from couchdb.mapping import TextField, IntegerField, DateField
1819
>>> class Person(Document):
1920
... name = TextField()
2021
... age = IntegerField()

0 commit comments

Comments
 (0)