Skip to content

Commit

Permalink
Use python2 compatible super
Browse files Browse the repository at this point in the history
  • Loading branch information
LilyFoote committed Feb 27, 2015
1 parent d722bbf commit 1c1bf2f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion user_management/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
class UniqueEmailValidator(validators.UniqueValidator):
def filter_queryset(self, value, queryset):
"""Check lower-cased email is unique."""
return super().filter_queryset(value.lower(), queryset)
return super(UniqueEmailValidator, self).filter_queryset(
value.lower(),
queryset,
)


unique_email_validator = UniqueEmailValidator(
Expand Down

0 comments on commit 1c1bf2f

Please sign in to comment.