Hi, I just installed a fresh development Django from SVN. I wanted access to the capability to dynamically add child rows when there is a parent- child foreign key relationship between two model tables.
E.g. My Version table has a ForeignKey to a Project table. I would like to be able to add multiple Versions to a Project from the Project admin form. The behavior I get is that it seems to try to be dynamic, but doesn't always add the rows. Here's my admin.py: ====================== from wijjo.projects.models import License, Project, Version, Target, File from django.contrib import admin class VersionInline(admin.TabularInline): model = Version extra = 0 max_num = 0 class ProjectAdmin(admin.ModelAdmin): inlines = [VersionInline] admin.site.register(License) admin.site.register(Project, ProjectAdmin) admin.site.register(Version) admin.site.register(Target) admin.site.register(File) ====================== It will add a first, second, and maybe third entry, but lose subsequent ones. A lot of the time it won't even save the first. It's inconsistent. Right now I can't seem to add any versions on the project admin page. I fill out the tabular version form along with the project form and save it, but the version is lost. I tried setting max_num to 99. It doesn't help. Any ideas? Unfortunately I admit to being a Django newbie impatiently trying to get a simple site going in a hurry. I am following the tutorial carefully, but tweaking it a bit for what I think I really need for the actual site. Any pointers or corrections would be greatly appreciated. Thanks in advance, Steve -- 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.