1👍
✅
I figured it out eventually. Was overthinking it.
from allauth.account.adapter import get_adapter
#...
def clean_username(self):
value = self.cleaned_data['username']
value = get_adapter().clean_username(value)
return value
Source:stackexchange.com