Re: Admin interface crashes when adding a new item with a ForeignKey

2008-11-10 Thread Ben Gerdemann
I figured out the problem. I used inspectdb to import my models from an existing database. I then marked the primary_key fields with primary_key=True, but I didn't should have also converted them from IntegerField to AutoField. Once I did that everything worked fine. I hope this message saves

Re: Admin interface crashes when adding a new item with a ForeignKey

2008-11-10 Thread Karen Tracey
You left off the actual exception you get. Also, the details of your Model and ModelAdmin definitions would be helpful (please post to dpaste.com and point to them if they're big enough to display poorly in email), since I've used this method myself without error so I suspect there is something

Admin interface crashes when adding a new item with a ForeignKey

2008-11-10 Thread Ben Gerdemann
Good morning all, This problem sure seems like a bug, but it's such a common operation that I must be doing something wrong. I am using the admin interface to add a new student to my database. At the same time I also want to add the parents of the student, so I click on the "+" icon on the