|
@@ -551,8 +551,6 @@ class AuthenticatedAction(ExportModelOperationsMixin('AuthenticatedAction'), mod
|
|
|
|
|
|
:return: List of values to be signed.
|
|
:return: List of values to be signed.
|
|
"""
|
|
"""
|
|
- # TODO consider adding a "last change" attribute of the user to the state to avoid code
|
|
|
|
- # re-use after the the state has been changed and changed back.
|
|
|
|
name = '.'.join([self.__module__, self.__class__.__qualname__])
|
|
name = '.'.join([self.__module__, self.__class__.__qualname__])
|
|
return [name]
|
|
return [name]
|
|
|
|
|
|
@@ -591,11 +589,10 @@ class AuthenticatedUserAction(ExportModelOperationsMixin('AuthenticatedUserActio
|
|
|
|
|
|
@property
|
|
@property
|
|
def _state_fields(self):
|
|
def _state_fields(self):
|
|
|
|
+ # TODO consider adding a "last change" attribute of the user to the state to avoid code
|
|
|
|
+ # re-use after the the state has been changed and changed back.
|
|
return super()._state_fields + [str(self.user.id), self.user.email, self.user.password, self.user.is_active]
|
|
return super()._state_fields + [str(self.user.id), self.user.email, self.user.password, self.user.is_active]
|
|
|
|
|
|
- def _act(self):
|
|
|
|
- raise NotImplementedError
|
|
|
|
-
|
|
|
|
|
|
|
|
class AuthenticatedActivateUserAction(ExportModelOperationsMixin('AuthenticatedActivateUserAction'), AuthenticatedUserAction):
|
|
class AuthenticatedActivateUserAction(ExportModelOperationsMixin('AuthenticatedActivateUserAction'), AuthenticatedUserAction):
|
|
domain = models.CharField(max_length=191)
|
|
domain = models.CharField(max_length=191)
|