From 8f127e86ac76be3137458de033f41992a14a65ec Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 2 Aug 2018 09:38:09 -0400 Subject: [PATCH] Mark UserAction as deprecated --- netbox/extras/api/views.py | 2 +- netbox/extras/models.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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,