added logging for user property creation
This commit is contained in:
parent
685de7650c
commit
48c818c3d1
|
@ -201,6 +201,11 @@ class AddUserPropertyView(DashboardView, CreateView):
|
||||||
form.instance.type = Property.Type.USER
|
form.instance.type = Property.Type.USER
|
||||||
|
|
||||||
messages.success(self.request, _("User property successfully added."))
|
messages.success(self.request, _("User property successfully added."))
|
||||||
|
|
||||||
|
device_logger.info(
|
||||||
|
f"Created user property (key='{form.instance.key}', value='{form.instance.value}') by user {self.request.user}, for evidence uuid: {self.property.uuid}."
|
||||||
|
)
|
||||||
|
|
||||||
response = super().form_valid(form)
|
response = super().form_valid(form)
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue