Skip to content

Undefined 'User" #44

@SelamZem

Description

@SelamZem

On chapter 5_ page(219)

def clean_email(self):
data = self.cleaned_data['email']
if User.objects.filter(email=data).exists():
raise forms.ValidationError('Email already in use.')
return data

the name User is not defined anywhere in the class

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