@@ -290,7 +290,7 @@ class Meta(forms.UserChangeForm.Meta):
290290 model = get_user_model ()
291291 exclude = ["password" , "id_password" ]
292292 fields = ['full_name' , 'preferred_name' , 'email' , 'bio' , 'affiliation' ,
293- 'location' , 'twitter' , 'github' , 'orcid' , 'consent' ]
293+ 'location' , 'twitter' , 'github' , 'orcid' ]
294294
295295 def __init__ (self , * args , ** kwargs ):
296296 super (UserChangeForm , self ).__init__ (* args , ** kwargs )
@@ -332,11 +332,7 @@ def __init__(self, *args, **kwargs):
332332 title = 'ORCID ID' ), css_class = 'form-group col-md-4 mb-0'
333333 )
334334 )
335- ),
336- Fieldset ('Consent' ,
337- Div (HTML ("See our <a href='{% url 'data_protection_and_privacy_policy' %}'> Data Protection and Privacy Policy</a>" ), css_class = "header_text" ),
338- Field ('consent' , required = True ),
339- HTML ("<br>" ))
335+ )
340336 )
341337
342338class UserCreationForm (forms .UserCreationForm ):
@@ -348,7 +344,7 @@ class UserCreationForm(forms.UserCreationForm):
348344 class Meta (forms .UserCreationForm .Meta ):
349345 fields = ('full_name' , 'preferred_name' , 'username' , 'email' , 'password1' ,
350346 'password2' , 'affiliation' , 'twitter' , 'github' , 'orcid' ,
351- 'bio' , 'location' )
347+ 'bio' , 'location' , 'consent' )
352348 model = get_user_model ()
353349
354350
@@ -395,7 +391,11 @@ def __init__(self, *args, **kwargs):
395391 title = 'ORCID ID' ), css_class = 'form-group col-md-4 mb-0'
396392 )
397393 )
398- )
394+ ),
395+ Fieldset ('Consent' ,
396+ Div (HTML ("See our <a href='{% url 'data_protection_and_privacy_policy' %}'> Data Protection and Privacy Policy</a>" ), css_class = "header_text" ),
397+ Field ('consent' , required = True ),
398+ HTML ("<br>" ))
399399
400400 )
401401
0 commit comments