Hi, I've got models defined so as I can edit one instance of model Option as well as 3 other instances of OptionTranslation in the same Admin page using the admin.TabularInline class. I can save the Option model with a couple of OptionTranslation model the first time round, but aif I try and edit and save the same model for a second time, I get a KeyError raised when I try and save (update) the model. Am I defining the models badly or do I need to override one of the save() methods?
Cheers, Mark class Option(models.Model): name = models.CharField(max_length=25) value = models.IntegerField() column = models.ManyToManyField(Column, null=True, blank=True) row = models.ForeignKey(Row, null=True, blank=True) def __unicode__(self): return self.name class OptionTranslation(Translation): option = models.ForeignKey(Option) class OptionTranslationInline(admin.TabularInline): model = OptionTranslation extra = 3 class OptionAdmin(admin.ModelAdmin): inlines = [OptionTranslationInline] pass --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---