Most idiomatic method to convert an object URL to Object

2018-05-14 Thread Oliver Zhou
I'm trying to do some custom activities in a ModelViewSet 'perform_create', and I was wondering what the best way to convert request.data URLs into objects. for example { "Example": "http://localhost:8000/rest/example/30/";, } How can I convert the string there into an object without going

Re: Use fields meta to create forms for Javascript client applications!!!!

2018-05-14 Thread Oliver Zhou
Unclear to me exactly what you're asking for - but it seems like you probably just want a ModelSerializer/ViewSet, and then perhaps doing an "OPTIONS" API call to the View to get basically what you're looking for. (But not exactly) Then - if you need additional customization there - you would t