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.
|
||||
project = 'django-mailbox'
|
||||
copyright = '2014, Adam Coddington'
|
||||
copyright = '2020, Adam Coddington'
|
||||
|
||||
# The version info for the project you're documenting, acts as replacement for
|
||||
# |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
|
||||
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__))
|
||||
else:
|
||||
lines.append(':type {}: {}'.format(field.attname, type(field).__name__))
|
||||
|
|
|
|||
1
tox.ini
1
tox.ini
|
|
@ -26,6 +26,7 @@ commands=
|
|||
deps=
|
||||
sphinx
|
||||
-r{toxinidir}/rtd_requirements.txt
|
||||
.
|
||||
commands=make html clean SPHINXOPTS="-W --keep-going"
|
||||
changedir={toxinidir}/docs
|
||||
allowlist_externals=make
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue