Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#20233 closed Cleanup/optimization (fixed)

Full custom user model example isn't really full

Reported by: frewsxcv Owned by: postrational
Component: Documentation Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

Referencing: https://docs.djangoproject.com/en/dev/topics/auth/customizing/#a-full-example

This section claims to be a 'full example', yet is missing one very important line. I believe that their should be an additional codeblock in this section telling to user to add

AUTH_USER_MODEL = 'myapp.MyUser'

to their settings.py.

Change History (7)

comment:1 Changed 2 years ago by frewsxcv

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

To be consistent with the example, it would be

AUTH_USER_MODEL = 'customauth.MyUser'

comment:2 Changed 2 years ago by timo

  • Easy pickings set
  • Triage Stage changed from Unreviewed to Accepted

comment:3 Changed 2 years ago by EvilDMP

  • Owner changed from nobody to EvilDMP
  • Status changed from new to assigned

I have tentatively reserved this ticket for first-time committers who take part in the Don't be afraid to commit workshop at the DjangoCon Europe 2013 sprints on 18th and 19th May.

If you want to tackle this ticket before then, please don't let the fact that it's assigned to me stop you. Feel free to re-assign it to yourself and do whatever you like to it.

comment:4 Changed 2 years ago by postrational

  • Owner changed from EvilDMP to postrational

comment:5 Changed 2 years ago by postrational <github@…>

In 0b3a6ead88c84aa30f11ad51ad3d89a016f9dd67:

refs #20233 - Full custom user model example isn't really full

Addition and fix for custom user model example documentation.

https://code.djangoproject.com/ticket/20233

comment:6 Changed 2 years ago by Andrew Godwin <andrew@…>

  • Resolution set to fixed
  • Status changed from assigned to closed

In cf56536ac7e63231ba63b602fbb89bd3d936f4fe:

Merge pull request #1145 from postrational/ticket_20233

Fixed #20233 - Full custom user model example isn't really full

comment:7 Changed 2 years ago by Tim Graham <timograham@…>

In cc62cbed76daeaea28c1e4892244bcf1e148f373:

Fixed some line wrapping, refs #20233

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