Ajax CRUD: best practise for related models in one view?
20 views
Skip to first unread message
ThomasTheDjangoFan
unread,
Jul 16, 2015, 12:18:04 PM7/16/15
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...@googlegroups.com
Hi guys,
I am searching for a best-practise tutorial (or code-example) to show me how to implement a frontend CRUD gui for related models - if possible: Ajax based.
Scenario: Let's say I have a contact-class. 1 contact can have n adresses. The address is assigned to the contact via a foreignkey.
Thats what I want to achieve: Just like in the django backend I'd like to have a frontend view that allows me to edit a contact and dynamically add adresses to it - ALL IN ONE VIEW. If possible: by ajax, so that the user does not have to reload the page with each new adress.