On 10/11/07, Greg <[EMAIL PROTECTED]> wrote: > > Hello, > I have the following field in my Orders class > > delivery_method = models.ForeignKey(Delivery) > > I want to be able to add a Order record and not specify a Delivery > option when the order is initially created. > > I've tried > > delivery_method = models.ForeignKey(Delivery, null=True) > and > delivery_method = models.ForeignKey(Delivery,blank=True) > > However, when I do this I get the error 'This field is required'
Try it with both. null=True, blank=True null is DB-specific. blank is validation-specific. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---