Skip to content

Commit

Permalink
fixup! fixup! fixup! Make ReverseManyToOneDescriptor generic over a…
Browse files Browse the repository at this point in the history
… model
  • Loading branch information
flaeppe committed Jun 21, 2024
1 parent 394bec1 commit 62ece2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mypy_django_plugin/transformers/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,8 +531,8 @@ def process_relation(self, relation: ForeignObjectRel) -> None:
)
return

# Create a reverse manager subclassed from the default manager of this model
# and 'RelatedManager'
# Create a reverse manager subclassed from the default manager of the related
# model and 'RelatedManager'
related_manager = Instance(related_manager_info, [Instance(to_model_info, [])])
# The reverse manager is based on the related model's manager, so it makes most sense to add the new
# related manager in that module
Expand Down

0 comments on commit 62ece2e

Please sign in to comment.