def __init__(self, *args, **kwargs): user_profile_instance = kwargs.pop('user_profile_instance', None) captcha_answer = kwargs.pop('captcha_answer', None) RegistrationForm.__init__(self, captcha_answer=captcha_answer, *args, **kwargs) ArtistProfileUpdateForm.__init__(self, user_profile_instance=user_profile_instance, *args, **kwargs) # Move CAPTCHA and EULA fields to the end self.fields.keyOrder.remove('captcha') self.fields.keyOrder.remove('over13') self.fields.keyOrder.remove('accept_eula') self.fields.keyOrder.extend(['captcha', 'over13', 'accept_eula'])
def __init__(self, *args, **kwargs): user_profile_instance = kwargs.pop('user_profile_instance', None) captcha_answer = kwargs.pop('captcha_answer', None) RegistrationForm.__init__(self, captcha_answer=captcha_answer, *args, **kwargs) ArtistProfileUpdateForm.__init__( self, user_profile_instance=user_profile_instance, *args, **kwargs) # Move CAPTCHA and EULA fields to the end self.fields.keyOrder.remove('captcha') self.fields.keyOrder.remove('over13') self.fields.keyOrder.remove('accept_eula') self.fields.keyOrder.extend(['captcha', 'over13', 'accept_eula'])