Skip to content

Bug in Chapter05/bookmarks/account/forms.py - Undefined User variable #50

@elpaisik

Description

@elpaisik
  • The problem: User is used but not imported
  • Where it occurs: clean_email() methods in UserRegistrationForm and UserEditForm
  • The fix: User = get_user_model()
  • Other chapters (4, 7) use the correct approach

Great Book, btw!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions