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

Use the string as cls_path if the related_model is specified as a string #8

Closed zd42 closed 6 years ago

zd42 commented 6 years ago

Handle that Django related_models sometimes are strings, i.e. when using my_field = ForeignKey('MyModel') rather than something like,

from my_models import MyModel
...
    my_field = ForeignKey(MyModel)
codecov-io commented 6 years ago

Codecov Report

Merging #8 into master will decrease coverage by 1.92%. The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master       #8      +/-   ##
==========================================
- Coverage   58.98%   57.06%   -1.93%     
==========================================
  Files           6        6              
  Lines         178      184       +6     
==========================================
  Hits          105      105              
- Misses         73       79       +6
Impacted Files Coverage Δ
sphinxcontrib_django/docstrings.py 41.48% <0%> (-1.93%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 8099c44...aa5d5c6. Read the comment docs.