mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-21 19:47:20 -06:00
Mark UserAction as deprecated
This commit is contained in:
parent
5e97f87a64
commit
8f127e86ac
@ -237,7 +237,7 @@ class ObjectChangeViewSet(ReadOnlyModelViewSet):
|
|||||||
|
|
||||||
class RecentActivityViewSet(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()
|
queryset = UserAction.objects.all()
|
||||||
serializer_class = serializers.UserActionSerializer
|
serializer_class = serializers.UserActionSerializer
|
||||||
|
@ -903,10 +903,11 @@ class UserActionManager(models.Manager):
|
|||||||
self.log_bulk_action(user, content_type, ACTION_BULK_DELETE, message)
|
self.log_bulk_action(user, content_type, ACTION_BULK_DELETE, message)
|
||||||
|
|
||||||
|
|
||||||
|
# TODO: Remove UserAction, which has been replaced by ObjectChange.
|
||||||
@python_2_unicode_compatible
|
@python_2_unicode_compatible
|
||||||
class UserAction(models.Model):
|
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(
|
time = models.DateTimeField(
|
||||||
auto_now_add=True,
|
auto_now_add=True,
|
||||||
|
Loading…
Reference in New Issue
Block a user