I am entering them on the same page otherwise I will have to note down the ids of people and publications table and then go to bridge table and insert the ids there. So the reason I want to enter in the same page is I will insert the ids into bridge table whenever I click save. I am not allowed to change the db design by the way and it sucks :)
On 29 Mart, 06:49, "pjrhar...@gmail.com" <pjrhar...@gmail.com> wrote: > > I cant use inlines option ind admin,py because the > > tables should be related. > > If they aren't related why would you want to be entering them on the > same page? > > When you come to edit them again what two instances should be loaded > together if they are completely unrelated? > > Given what you first said: > > > 2) I also want to insert the id values of people and publication to a > > bridge table(lets say PeoplePublication) whenever I do the first step. > > you want a ManyToManyField and Inlines. A ManyToManyField > automatically sets up this bridge table. If you want more information > associated with the relationship, look into the "through" option. > > http://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.mod... > > Peter -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.