SimpleTestCase.assertRedirects(response, expected_url, status_code=302, target_status_code=200, msg_prefix='', fetch_redirect_response=True)
get_login_url() Returns the URL that users who don’t pass the test will be redirected to. Returns login_url if
Page.next_page_number() [source] Returns the next page number. Raises InvalidPage
get_username() Returns the value of the field nominated by USERNAME_FIELD.
class UserCreationForm A
make_random_password(length=10, allowed_chars='abcdefghjkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789') Returns a random password
To define a one-to-one relationship, use
class PasswordResetForm A form for generating and emailing a one-time use link to reset a user’s password.
items()
Caution This is an advanced topic. A working knowledge of Django’s class-based
Page 16 of 35