DRF

Concept of Auditing in dajngo

blog image

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"})  

 


About author

author image

Amrit Panta

Python developer, content writer



3 Comments

Amanda Martines 5 days ago

Exercitation photo booth stumptown tote bag Banksy, elit small batch freegan sed. Craft beer elit seitan exercitation, photo booth et 8-bit kale chips proident chillwave deep v laborum. Aliquip veniam delectus, Marfa eiusmod Pinterest in do umami readymade swag. Selfies iPhone Kickstarter, drinking vinegar jean.

Reply

Baltej Singh 5 days ago

Drinking vinegar stumptown yr pop-up artisan sunt. Deep v cliche lomo biodiesel Neutra selfies. Shorts fixie consequat flexitarian four loko tempor duis single-origin coffee. Banksy, elit small.

Reply

Marie Johnson 5 days ago

Kickstarter seitan retro. Drinking vinegar stumptown yr pop-up artisan sunt. Deep v cliche lomo biodiesel Neutra selfies. Shorts fixie consequat flexitarian four loko tempor duis single-origin coffee. Banksy, elit small.

Reply

Leave a Reply

Scroll to Top