Skip to content

Commit

Permalink
Update docs dependencies and foreign key introspection.
Browse files Browse the repository at this point in the history
  • Loading branch information
rtibbles committed Mar 5, 2024
1 parent 3d90257 commit b88cf0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,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.remote_field.model
lines.append(u':type %s: %s to :class:`~%s`' % (field.attname, type(field).__name__, to))
else:
lines.append(u':type %s: %s' % (field.attname, type(field).__name__))
Expand Down
6 changes: 3 additions & 3 deletions requirements/docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ m2r
sphinx-notfound-page

# for extracting model docs
django==1.11.29 # pyup: >=1.11,<2
djangorestframework==3.9.1
django-mptt==0.9.1
django==3.2.24
djangorestframework==3.14.0
django-mptt==0.16.0
rsa==3.4.2
ifcfg==0.21

0 comments on commit b88cf0c

Please sign in to comment.