benoitc/couchdbkit — Issue #113: ./manage.py sync_prepare_couchdb fails if a design doc has no views
Author: dannyroberts
Created: 2012-01-05 20:32:05+00:00
State: open

A design doc might have no views if, for example, an app just wants to specify a filter, but doesn't have any views. The offending line is
view_names = ddoc['views'].keys()
in couchdbkit.ext.django.loading. Should be
view_names = ddoc.get('views', {}).keys()
or similar.