Opened 14 years ago

Closed 12 years ago

#14451 closed New feature (wontfix)

add related_name to contrib.auth.models.User for 'groups'

Reported by: Tom von Schwerdtner Owned by: anonymous
Component: contrib.auth Version: 1.2
Severity: Normal Keywords:
Cc: Triage Stage: Design decision needed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Would allow for

from django.contrib.auth.models import Group
group = Group.objects.all()[0]
group.members.all()

instead of the current

group.users_set.all()

You know, nexttime someone feels like kicking backwards compatibility in the groin...

Change History (7)

comment:1 by Luke Plant, 14 years ago

Triage Stage: UnreviewedSomeday/Maybe

comment:2 by anonymous, 14 years ago

Owner: changed from nobody to anonymous
Status: newassigned

comment:3 by Julien Phalip, 13 years ago

Severity: Normal
Type: New feature

comment:4 by Thejaswi Puthraya, 13 years ago

Component: Uncategorizedcontrib.auth
Easy pickings: unset
UI/UX: unset

comment:5 by Jacob, 13 years ago

Milestone 2.0 deleted

comment:6 by Aymeric Augustin, 12 years ago

Triage Stage: Someday/MaybeDesign decision needed

This can be done with a deprecation path right now if we want to. During the transition, Group.users_set would be a property raising a deprecation warning and returning members.

However I don't know if there's much value in forcing this change upon all users of Django.

comment:7 by Aymeric Augustin, 12 years ago

Resolution: wontfix
Status: assignedclosed

Actually, I cannot convinced myself there's enough value.

Note: See TracTickets for help on using tickets.
Back to Top