when ever i override the change_view in admin i will get the following line of code
@csrf_protect_m
@transaction.commit_on_success
def change_view(self, request, object_id, extra_context=None):
return admin.ModelAdmin.change_view(self, request, object_id, extra_context=extra_context)
What is the First two line of code ?? Should i use this ?? What it does ?
I am just started Extending Django Admin. So hope your answers will be simple and with example.