'Cleanup username.'

def clean_username(self):

    username = self.cleaned_data['username']
    if PlayerDB.objects.filter(username__iexact=username):
        raise forms.ValidationError('A    player    with    that    name    already    exists.')
    return username
