Ticket #4923: authentication.diff

File authentication.diff, 757 bytes (added by Simon G. <dev@…>, 17 years ago)
  • docs/authentication.txt

     
    190190    >>> from django.contrib.auth.models import User
    191191    >>> user = User.objects.create_user('john', 'lennon@thebeatles.com', 'johnpassword')
    192192
    193     # At this point, user is a User object ready to be saved
    194     # to the database. You can continue to change its attributes
    195     # 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.
    196196    >>> user.is_staff = True
    197197    >>> user.save()
    198198
Back to Top