'Strips the spaces from the username.
Similar to what `django.forms.SlugField` does.'

def clean(self, value):

    value = self.to_python(value).strip()
    return super(UsernameField, self).clean(value)
