فهرست منبع

fix(api): move comment and remove redundant code

Peter Thomassen 5 سال پیش
والد
کامیت
53deb47692
1فایلهای تغییر یافته به همراه2 افزوده شده و 5 حذف شده
  1. 2 5
      api/desecapi/models.py

+ 2 - 5
api/desecapi/models.py

@@ -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)