diff --git a/netbox/extras/api/views.py b/netbox/extras/api/views.py index b081d9ec4..b278f9a7c 100644 --- a/netbox/extras/api/views.py +++ b/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 diff --git a/netbox/extras/models.py b/netbox/extras/models.py index 904381e4d..ad4fcdb18 100644 --- a/netbox/extras/models.py +++ b/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,