sphinx-doc / sphinxcontrib-django

This is a sphinx extension which improves the documentation of Django apps.
https://pypi.org/project/sphinxcontrib-django/
Apache License 2.0
45 stars 25 forks source link

ForeignKeys on abstract models in Django >= 2.0 can break #11

Closed tarkatronic closed 6 years ago

tarkatronic commented 6 years ago

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 6 years ago

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 6 years ago

Thanks for the reminder! I've released version 0.4