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
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.

Does anyone know a best-practise example?

I am looking forward to your tips

Kind regards
Thomas




Reply all
Reply to author
Forward
0 new messages