Revision ccaadd41 snf-astakos-app/astakos/im/forms.py

b/snf-astakos-app/astakos/im/forms.py
433 433
    user during the next login will not to be redirected to profile page.
434 434
    """
435 435
    renew = forms.BooleanField(label='Renew token', required=False)
436
    uuid = forms.CharField(label='User id', required=False)
436 437

  
437 438
    class Meta:
438 439
        model = AstakosUser
439 440
        fields = ('email', 'first_name', 'last_name', 'auth_token',
440
                  'auth_token_expires')
441
                  'auth_token_expires', 'uuid')
441 442

  
442 443
    def __init__(self, *args, **kwargs):
443 444
        self.session_key = kwargs.pop('session_key', None)
444 445
        super(ProfileForm, self).__init__(*args, **kwargs)
445 446
        instance = getattr(self, 'instance', None)
446
        ro_fields = ('email', 'auth_token', 'auth_token_expires')
447
        ro_fields = ('email', 'auth_token', 'auth_token_expires', 'uuid')
447 448
        if instance and instance.id:
448 449
            for field in ro_fields:
449 450
                self.fields[field].widget.attrs['readonly'] = True
......
983 984
                'new_password2',
984 985
                'change_email',
985 986
                'change_password',
987
                'uuid'
986 988
        ]
987 989

  
988 990
        super(ExtendedProfileForm, self).__init__(*args, **kwargs)

Also available in: Unified diff