That is, create/update/delete generic views do not create, update, or delete on a model (table) with a foreign key within the app or project. At least I cannot figure out how.
They do, however, work fine on a model with a foreign key to django.contrib.auth.models.User. I got this from the http://code.djangoproject.com/wiki/DjangoCheatSheet. This model works with generic CRUD views: class Ticket (models.Model): user = models.ForeignKey (User) case_number = models.IntegerField() dollar_amount = models.FloatField('Cost (in dollars)', max_digits=10, decimal_places=2) However, nearly the same model with a foreign key to another model in the same app (or project, I've tried it both ways) does not: class Theater (models.Model): name = models.CharField('name', maxlength=100, core=False) class Ticket (models.Model): theater = models.ForeignKey (Theater) case_number = models.IntegerField() dollar_amount = models.FloatField('Cost (in dollars)', max_digits=10, decimal_places=2) BTW, I've tried this with 0.95 and 0.96pre, same thing. Many thanks in advance. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---