Populating django admin inline fields with javascript

2019-07-16 Thread Mario Sassmann
Hi! I'm trying to write an importer for populating admin model fields with existing model data: This is my approach: I modified the admin view for the specific model and added a form including select boxes to choose the existing model and a button to start the import. As I'm using drf for ma

Re: Populating django admin inline fields with javascript

2019-07-16 Thread Mario Sassmann
OK I solved the problem. I accidently set the primary keys (hidden fields) when populating the inline forms with javascript. Am Dienstag, 16. Juli 2019 21:49:10 UTC+2 schrieb Mario Sassmann: > > Hi! > > I'm trying to write an importer for populating admin model fields with