benoitc/couchdbkit — Issue #107: Django: sync_couchdb overwrites library's views
Author: stefankoegl
Created: 2011-11-07 17:30:50+00:00
State: open

I have separated some part of my Django application into a library (https://github.com/stefankoegl/django-couchdb-utils). The library provides a class User (subclass of Document) which I subclass in my application with a class of the same name.

Both apps (from the library and from the actual application) have views in the _design subfolder. When I try to upload my views to Couch, I get the following output

````Bash
./manage.py sync_couchdb
sync `django_couchdb_utils.auth` in CouchDB
sync `mygpo.users` in CouchDB
sync `mygpo.users` in CouchDB
# others omitted
```
The first line is the design-doc for the library, and the next two lines are of my application. It seems that the design-doc is uploaded twice; first using the correct name, and second overwriting the design-doc of the library.

If I do not derive my class from my library's class everything works fine. The fact that I use the same name for the super and subclass does not seem to matter.

Can I fix my projects somehow, or will it be necessary to change something in couchdbkit?