#10913: Default related_name is broken
---------------------------------------------------+------------------------
Reporter: neithere | Owner: nobody
Status: closed | Milestone:
Component: Database layer (models, ORM) | Version: SVN
Resolution: invalid | Keywords: orm,
related_name,
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------------+------------------------
Changes (by kmtracey):
* status: new => closed
* needs_better_patch: => 0
* resolution: => invalid
* needs_tests: => 0
* needs_docs: => 0
Comment:
Everything you show looks correct. book_set is not a field, it is a type
of queryset Manager that you can use to access the set of books by a
particular Author instance. Therefore, since it is not a field, you
cannot filter on it. Rather, you filter on the actual field you are
interested in. If you have additional questions, please post to django-
users, not the ticket tracker. What you have posted here indicates a
misunderstanding about Django, how it works, and how to use it, not a bug
in Django. The django-users mailing list will be a better place to get
misunderstandings cleared up than the ticket tracker.
--
Ticket URL: <http://code.djangoproject.com/ticket/10913#comment:1>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---