4 ms·
I'm doing something similar with serializing django forms and sending them to a react app that turns the json into a form. It's a really convenient way of doing
by n0us 11y ago
I'm doing something similar with serializing django forms and sending them to a react app that turns the json into a form. It's a really convenient way of doing things.
- jentulman 11y agoReally sorry, down voted you by mistake with a loose finger. App I use has moved the vote buttons right where I scroll.
- n0us 11y agono prob I'm here for the discussion, not the karma
- iyn 11y agoCan you provide more details how do you serialize django forms?
- n0us 11y agoI could have rolled my own solution but I forked this guy's repo (fork here: https://github.com/PendletonJones/remote_forms https://github.com/PendletonJones/remote_forms ) and updated it to work with Python3, I also stripped out some of the stuff in date related fields because the original guy was doing some weird stuff but it's a work in progress. Edit: basically just creating a dict out of the various attributes and then passing to json.dumps()