def clean(self):
        self.cleaned_data['username'] = self.cleaned_data.get('display_name')
        return super(UserRegistrationForm, self).clean()
Overwrites method to assign display_name value to username
dataset/ETHPy150Open ExCiteS/geokey/geokey/users/forms.py/UserRegistrationForm.clean