diff options
| author | Ed Henderson <ed@sharpertool.com> | 2016-06-02 12:56:13 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-06-03 11:44:34 -0400 |
| commit | 4a4d7f980e2a66756e1e424f7648dcd28ff765b7 (patch) | |
| tree | 3bb4acb494a41b3ef9ec59b9ab5670cbc46ff9ac /docs/topics/auth | |
| parent | 38575b007a722d6af510ea46d46393a4cda9ca29 (diff) | |
Fixed #26021 -- Applied hanging indentation to docs.
Diffstat (limited to 'docs/topics/auth')
| -rw-r--r-- | docs/topics/auth/customizing.txt | 5 | ||||
| -rw-r--r-- | docs/topics/auth/default.txt | 8 |
2 files changed, 8 insertions, 5 deletions
diff --git a/docs/topics/auth/customizing.txt b/docs/topics/auth/customizing.txt index 104c7a261b..511300b4ae 100644 --- a/docs/topics/auth/customizing.txt +++ b/docs/topics/auth/customizing.txt @@ -967,9 +967,10 @@ authentication app:: Creates and saves a superuser with the given email, date of birth and password. """ - user = self.create_user(email, + user = self.create_user( + email, password=password, - date_of_birth=date_of_birth + date_of_birth=date_of_birth, ) user.is_admin = True user.save(using=self._db) diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt index 1a2df1c083..f0cbf07b14 100644 --- a/docs/topics/auth/default.txt +++ b/docs/topics/auth/default.txt @@ -249,9 +249,11 @@ in ``myapp``:: from django.contrib.contenttypes.models import ContentType content_type = ContentType.objects.get_for_model(BlogPost) - permission = Permission.objects.create(codename='can_publish', - name='Can Publish Posts', - content_type=content_type) + permission = Permission.objects.create( + codename='can_publish', + name='Can Publish Posts', + content_type=content_type, + ) The permission can then be assigned to a :class:`~django.contrib.auth.models.User` via its ``user_permissions`` |
