Ticket #4923: authentication.diff
File authentication.diff, 757 bytes (added by , 17 years ago) |
---|
-
docs/authentication.txt
190 190 >>> from django.contrib.auth.models import User 191 191 >>> user = User.objects.create_user('john', 'lennon@thebeatles.com', 'johnpassword') 192 192 193 # At this point, user is a User object ready to be saved194 # to the database. You can continue to change its attributes195 # if you want to change other fields.193 # At this point, user is a User object that has already been 194 # saved to the database. You can continue to change its 195 # attributes if you want to change other fields. 196 196 >>> user.is_staff = True 197 197 >>> user.save() 198 198