We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88f824e commit 15664f4Copy full SHA for 15664f4
.gitignore
@@ -5,3 +5,4 @@ dist/*
5
doc/build/*
6
.tox
7
.coverage
8
+.idea
couchdb/mapping.py
@@ -195,8 +195,8 @@ class ViewField(object):
195
>>> class Person(Document):
196
... name = TextField()
197
... age = IntegerField()
198
- ... by_name = ViewField('people', '''\
199
- ... function(doc) {
+ ... by_name = ViewField('people',
+ ... '''function(doc) {
200
... emit(doc.name, doc);
201
... }''')
202
>>> Person.by_name
0 commit comments