post-thumb

Concept of Auditing in dajngo

In this tutorial we will learn about the concept of auding ,it's important and how we can implemented it on django.

def delete(self, request):
IncludedExcluded.objects.filter(uuid=request.data["uuid"]).delete()
data = {"table_name": "included excluded", "uuid": request.data["uuid"], "updated_by": request.user.uuid,
        "field_name": None,
        'previous_value': None, 'updated_value': None, "method": "DELETE"}
audit_on_update_delete(data)
return Response({"message": "data added"})