Here's a ticket that looks like it describes your problem: http://code.djangoproject.com/ticket/1030
It's still open but it looks like the last comment might provide a workaround, depending on the version of Django you are running. Karen On 11/8/07, kevinski <[EMAIL PROTECTED]> wrote: > > > I am building a simple wiki and I am having trouble with my models: > > from django.db import models > > class Wikipage(models.Model): > title = models.SlugField(primary_key=True) > creator = models.CharField(maxlength=25) > post_date = models.DateTimeField(auto_now_add=True) > class Admin: > pass > > class Pageversion(models.Model): > page = models.ForeignKey(Wikipage, edit_inline=models.TABULAR, > num_in_admin=1) > content = models.TextField(core=True) > editor = models.CharField(maxlength=25) > update_date = models.DateTimeField(auto_now_add=True) > > Everything is fine when I submit a Wikipage with 1 Pageversion in the > Admin Interface. > When I try to add a second Pageversion, I get the following error > message. > > "Column was set to data type implicit default; NULL supplied for NOT > NULL column 'update_date' at row 1" > > Any ideas why additional Pageversions do not post an auto_now_add > date? FYI my db is MySQL. > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---