mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-09 22:38:19 +02:00
Minor updates.
This commit is contained in:
parent
78612f34a1
commit
355023fb75
2 changed files with 3 additions and 2 deletions
|
|
@ -40,7 +40,7 @@ master_doc = 'index'
|
||||||
|
|
||||||
# General information about the project.
|
# General information about the project.
|
||||||
project = 'django-mailbox'
|
project = 'django-mailbox'
|
||||||
copyright = '2014, Adam Coddington'
|
copyright = '2020, Adam Coddington'
|
||||||
|
|
||||||
# The version info for the project you're documenting, acts as replacement for
|
# The version info for the project you're documenting, acts as replacement for
|
||||||
# |version| and |release|, also used in various other places throughout the
|
# |version| and |release|, also used in various other places throughout the
|
||||||
|
|
@ -282,7 +282,7 @@ def process_docstring(app, what, name, obj, options, lines):
|
||||||
|
|
||||||
# Add the field's type to the docstring
|
# Add the field's type to the docstring
|
||||||
if isinstance(field, models.ForeignKey):
|
if isinstance(field, models.ForeignKey):
|
||||||
to = field.rel.to
|
to = field.related_model
|
||||||
lines.append(':type {}: {} to :class:`~{}.{}`'.format(field.attname, type(field).__name__, to.__module__, to.__name__))
|
lines.append(':type {}: {} to :class:`~{}.{}`'.format(field.attname, type(field).__name__, to.__module__, to.__name__))
|
||||||
else:
|
else:
|
||||||
lines.append(':type {}: {}'.format(field.attname, type(field).__name__))
|
lines.append(':type {}: {}'.format(field.attname, type(field).__name__))
|
||||||
|
|
|
||||||
1
tox.ini
1
tox.ini
|
|
@ -26,6 +26,7 @@ commands=
|
||||||
deps=
|
deps=
|
||||||
sphinx
|
sphinx
|
||||||
-r{toxinidir}/rtd_requirements.txt
|
-r{toxinidir}/rtd_requirements.txt
|
||||||
|
.
|
||||||
commands=make html clean SPHINXOPTS="-W --keep-going"
|
commands=make html clean SPHINXOPTS="-W --keep-going"
|
||||||
changedir={toxinidir}/docs
|
changedir={toxinidir}/docs
|
||||||
allowlist_externals=make
|
allowlist_externals=make
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue