Opened 17 years ago
Closed 17 years ago
#7592 closed (wontfix)
get_or_create for User
| Reported by: | Mihai Damian | Owned by: | |
|---|---|---|---|
| Component: | contrib.auth | Version: | dev |
| Severity: | Keywords: | get_or_create profile | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Shouldn't there be a get_or_create_profile() function for User to go along with get_profile() ?
Note:
See TracTickets
for help on using tickets.
get_profile() is just a shortcut; there's no reason you can't import AUTH_PROFILE_MODULE yourself and call get_or_create on it.