On May 6, 4:44 pm, "Russell Keith-Magee" <[EMAIL PROTECTED]> wrote: > Well - there is one other way: the default argument on a field. For example: > > position = models.IntegerField(blank=True, default=1) > > You can also pass a callable: > > from datetime import datetime > ... > pub_date = models.DateField(default=datetime.now)
Thanks for the tip. > You _could_ do all this with signals, but it's a bit over the top IMHO. Yeah, I decided to pretty much stick with overriding the functions in this case. I will use signals when I want to hook other functionality into the model (like sending an email), but I feel that this is core to the Model. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---