ForeignKeys on abstract models in Django >= 2.0 can break
tarkatronic opened this issue · 2 comments
tarkatronic commented
If I have an abstract model with a ForeignKey
specified as a string, I get the following error when generating Sphinx docs:
File ".venv/lib/python3.6/site-packages/sphinxcontrib_django/docstrings.py", line 180, in _get_field_type
field.name, type(field).__name__, to.__module__, to.__name__)
AttributeError: 'str' object has no attribute '__module__'
tarkatronic commented
This appears to have been resolved by #9, but no release has been issued since.
Is there any chance of a release in the near future, or is it necessary to use a git clone for the foreseeable future with Django >= 2.0?
vdboor commented
Thanks for the reminder! I've released version 0.4