Discussion:
How do I customize action names in admin for GenericAPIView?
Rich Rauenzahn
2018-06-29 23:26:09 UTC
Permalink
I have a view,

class Login(generics.GenericAPIView):

[...]
def post(self, request):

[...]

def get(self, request):
[...]

And when I look at the auto admin interface, it shows up as

login > create

or

login > list

How are these verbs "create" and "list" determined? I tried tracing back
from the HTML and got stuck on link_keys ... I'd like at the very least to
change "list" to "read".

Thanks,
Rich
--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...