benoitc / benoitc/couchdbkit

Django: sync_couchdb overwrites library's views

Open
#107 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
263
Forks
90
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.