Hi all, I have been asked to build a single-page, ajax based data entry interface for a moderately complex set of models. There are 5 models, linked into a tree structure by foreign keys. The number of children for each model is variable, so there could be up to 4 levels of nested formsets.
I can get a nice nested JSON representation of the data into Javascript on the page using Django Rest Framework, and I'm sure I could hack together an interface to modify that data structure in the browser with jQuery. I could also use the Rest Framework to receive a POST with the new data structure, and convert it to a series of plain Python dictionaries and lists. However, I haven't yet discovered a great way to map it to updates, insertions and deletions of existing model instances, validate it for consistency, and return any errors for display at the right input fields in the user interface. I have seen https://code.google.com/p/django-ajax-forms/ for adding client-side validation to forms - but it appears abandoned, and any data should still be re-validated on the server side. Some of the validation (unique constraints) can only be done on the server. Do you have any suggestions, or links to useful libraries, tutorials and blog posts about how to best approach this? Thanks, Mattias -- 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 post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. For more options, visit https://groups.google.com/groups/opt_out.