couchdbkit icon indicating copy to clipboard operation
couchdbkit copied to clipboard

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

Open Jokipii opened this issue 11 years ago • 5 comments
trafficstars

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()

Jokipii avatar May 03 '14 15:05 Jokipii

I get this error as well

antham avatar Sep 02 '14 22:09 antham

Me too

bjinwright avatar Oct 21 '14 17:10 bjinwright

Having the same issue

ivo-o avatar Jun 09 '15 21:06 ivo-o

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

benoitc avatar Jun 10 '15 20:06 benoitc

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

ghost avatar Jul 10 '15 07:07 ghost