You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
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
Derek
unread,
Aug 27, 2019, 9:54:09 AM8/27/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
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.