[Django] #32875: Which is prefered for `default_related_name`?

9 views
Skip to first unread message

Django

unread,
Jun 23, 2021, 5:08:59 AM6/23/21
to django-...@googlegroups.com
#32875: Which is prefered for `default_related_name`?
------------------------------------------+------------------------
Reporter: sih4sing5hong5 | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 3.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------+------------------------
`%(model_name)s` is recommended in the document
[https://docs.djangoproject.com/en/3.2/ref/models/options/#default-
related-name default_related_name] but `%(class)s ` is recommended in the
document [https://docs.djangoproject.com/en/3.2/topics/db/models/#be-
careful-with-related-name-and-related-query-name Be careful with
related_name and related_query_name].
Both are worked. Which is better?

Thank you

--
Ticket URL: <https://code.djangoproject.com/ticket/32875>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jun 23, 2021, 5:12:22 AM6/23/21
to django-...@googlegroups.com
#32875: Which is prefered for `default_related_name`?
--------------------------------+--------------------------------------
Reporter: sih4sing5hong5 | Owner: nobody
Type: Uncategorized | Status: closed
Component: Uncategorized | Version: 3.2
Severity: Normal | Resolution: invalid

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------+--------------------------------------
Changes (by Mariusz Felisiak):

* status: new => closed
* resolution: => invalid


Comment:

Please don't use Trac as a support channel. Closing per
TicketClosingReasons/UseSupportChannels.

--
Ticket URL: <https://code.djangoproject.com/ticket/32875#comment:1>

Django

unread,
Jun 23, 2021, 10:09:18 PM6/23/21
to django-...@googlegroups.com
#32875: Which is prefered for `default_related_name`?
-------------------------------+--------------------------------------
Reporter: A-hông | Owner: nobody
Type: Uncategorized | Status: closed
Component: Uncategorized | Version: 3.2
Severity: Normal | Resolution: invalid

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------

Comment (by A-hông):

Thank you for the comment.

The document is not consistent. I will find other channel, thanks.

--
Ticket URL: <https://code.djangoproject.com/ticket/32875#comment:2>

Reply all
Reply to author
Forward
0 new messages