[@action Django restframework ]: execute commands when a new client is registered

Asked

Viewed 19 times

0

good night. I am developing a customer registration API, and I would like it that every time a new client is registered, runs something, and I tested a code and it didn’t work. someone can help me?

```
from rest_framework.decorators import action
import requests

@action(methods=['post'], detail=True)
def update_status(self, request):
    if(request.method == 'POST'):
        ## do something
```
  • what type of message type command was successfully registered in the database ?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.