Skip to content

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

Description

@Jokipii

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions