barseghyanartur / django-fobi

Form generator/builder application for Django done right: customisable, modular, user- and developer- friendly.
https://pypi.python.org/pypi/django-fobi
484 stars 112 forks source link

removed unicode_to_repr function, not supported in rest_framework anymore #226

Closed vlasebian closed 5 years ago

vlasebian commented 5 years ago

The error ImportError: cannot import name 'unicode_to_repr' occurs when following import is executed: from fobi.contrib.apps.drf_integration.urls import fobi_router. The unicode_to_repr function was removed from compat module when python 2 compatibility was dropped in django-rest-framework (see here). I am using python 3.5.3, django 2.0.13 and django-rest-framework 3.10.1.

Please review the fix and let's see if everything is okay.

barseghyanartur commented 5 years ago

@vlasebian:

Thank you!