1
0
mirror of https://github.com/django/django.git synced 2025-04-05 14:06:42 +00:00

Fixed typo in django/db/models/options.py.

This commit is contained in:
Clifford Gama 2025-04-01 19:07:04 +02:00 committed by GitHub
parent a245604277
commit 3ee90747c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -534,7 +534,7 @@ class Options:
# For legacy reasons, the fields property should only contain forward
# fields that are not private or with a m2m cardinality. Therefore we
# pass these three filters as filters to the generator.
# The third lambda is a longwinded way of checking f.related_model - we don't
# The third filter is a longwinded way of checking f.related_model - we don't
# use that property directly because related_model is a cached property,
# and all the models may not have been loaded yet; we don't want to cache
# the string reference to the related_model.