lanto03 / couchdb-python

Automatically exported from code.google.com/p/couchdb-python
Other
0 stars 0 forks source link

Mapping example in documentation has wrong import #189

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The example at http://packages.python.org/CouchDB/mapping.html has the 
following import:

from couchdb.mapping import TextField, IntegerField, DateField

but uses a DateTimeField:

added = DateTimeField(default=datetime.now)

It also assumes:

from datetime import datetime

Original issue reported on code.google.com by petroun...@gmail.com on 6 Jul 2011 at 1:51

GoogleCodeExporter commented 8 years ago
Thanks for reporting! Patch attached. Probably it have to be merged with patch 
from issue 198.

Original comment by kxepal on 12 Oct 2012 at 12:02

Attachments:

GoogleCodeExporter commented 8 years ago
I've taken your patch as revision 3ae1ee5eb0a1, thanks, and also changed the 
DateField to DateTimeField in revision 6a05bf775acc.

Original comment by djc.ochtman on 12 Oct 2012 at 8:19