benoitc / couchdbkit

CouchDB python framework
http://couchdbkit.org
Other
265 stars 94 forks source link

couchdbkit.ext.django.schema thows import error with Django 1.7 #180

Open Jokipii opened 10 years ago

Jokipii commented 10 years ago

couchdbkit.ext.django.schema thows import error because get_verbose method is removed from django.db.models.options

fix: remove

from django.db.models.options import get_verbose_name

and include get_verbose_name from previous Django version

# Calculate the verbose_name by converting from InitialCaps to "lowercase with spaces".
get_verbose_name = lambda class_name: re.sub('(((?<=[a-z])[A-Z])|([A-Z](?![A-Z]|$)))', ' \\1', class_name).lower().strip()
antham commented 10 years ago

I get this error as well

bjinwright commented 10 years ago

Me too

ivo-o commented 9 years ago

Having the same issue

benoitc commented 9 years ago

time for a new release of couchdbkit then :) I will have a look next week/

ghost commented 9 years ago

PR #185 already fixes this issue. Any news on this?