You need to separate out the "core" functionality of your action - the part 
that processes the records - into a stand-alone function.  This function 
can then be also called from your view(s) that currently handles the 
various HTTP requests you list.

On Sunday, 25 August 2019 15:00:35 UTC+2, Ezequias Rocha wrote:
>
> Hello everyone
>
> I am using admin actions and it is great and easy. 
>
> Butner if I want to use the same function used by admin from outside (I.E. 
> Postman HTTP request or a website request). How do the Django rest 
> framework provides me?
>
> Best regards 
> Ezequias 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/dae24523-7a3c-432b-ba56-8e32efdb2104%40googlegroups.com.

Reply via email to