Jeremy Stretch 7 лет назад
Родитель
Сommit
8f127e86ac
2 измененных файлов с 3 добавлено и 2 удалено
  1. 1 1
      netbox/extras/api/views.py
  2. 2 1
      netbox/extras/models.py

+ 1 - 1
netbox/extras/api/views.py

@@ -237,7 +237,7 @@ class ObjectChangeViewSet(ReadOnlyModelViewSet):
 
 class RecentActivityViewSet(ReadOnlyModelViewSet):
     """
-    List all UserActions to provide a log of recent activity.
+    DEPRECATED: List all UserActions to provide a log of recent activity.
     """
     queryset = UserAction.objects.all()
     serializer_class = serializers.UserActionSerializer

+ 2 - 1
netbox/extras/models.py

@@ -903,10 +903,11 @@ class UserActionManager(models.Manager):
         self.log_bulk_action(user, content_type, ACTION_BULK_DELETE, message)
 
 
+# TODO: Remove UserAction, which has been replaced by ObjectChange.
 @python_2_unicode_compatible
 class UserAction(models.Model):
     """
-    A record of an action (add, edit, or delete) performed on an object by a User.
+    DEPRECATED: A record of an action (add, edit, or delete) performed on an object by a User.
     """
     time = models.DateTimeField(
         auto_now_add=True,