mirror of
https://github.com/django/django.git
synced 2025-04-20 15:24:35 +00:00
[1.5.x] Fixed a typo in docs/topics/auth/customizing.txt
Backport of 2c173ff3b4 from master
This commit is contained in:
parent
be5369fd24
commit
6155b66d06
@ -438,11 +438,10 @@ different User model.
|
||||
you should specify the custom model using the :setting:`AUTH_USER_MODEL`
|
||||
setting. For example::
|
||||
|
||||
|
||||
from django.conf import settings
|
||||
from django.db import models
|
||||
|
||||
class Article(models.Model)
|
||||
class Article(models.Model):
|
||||
author = models.ForeignKey(settings.AUTH_USER_MODEL)
|
||||
|
||||
Specifying a custom User model
|
||||
|
Loading…
x
Reference in New Issue
Block a user