theatlantic / django-select2-forms

Django form fields using the Select2 jQuery plugin
Other
82 stars 30 forks source link

cannot import name ReverseManyRelatedObjectsDescriptor #25

Closed devrow closed 7 years ago

devrow commented 8 years ago
File "/home/user/site/app/models.py", line 14, in <module>
    import select2.fields
File "/opt/py27/lib/site-packages/select2/fields.py", line 10, in <module>
    from .models.descriptors import SortableReverseManyRelatedObjectsDescriptor
File "/opt/py27/lib/site-packages/select2/models/descriptors.py", line 4, in <module>
    from django.db.models.fields.related import ReverseManyRelatedObjectsDescriptor
ImportError: cannot import name ReverseManyRelatedObjectsDescriptor
lakinwecker commented 8 years ago

This pull request: https://github.com/theatlantic/django-select2-forms/pull/26 fixes the issue.

fdintino commented 7 years ago

Merged that pull request.