You were correct in the "guessing" at what I meant :-)  It would have
been more precise to state 0-1 to many.  In either case I tried the
blank=True method and it seemed to get me a runtime error.  Then again
it was late in the day and so the gremlines might have taken ahold.

Thanks for the quick response in any case.


On 4/21/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
> On Fri, 2006-04-21 at 17:55 -0700, [EMAIL PROTECTED] wrote:
> > Is there such an animal out there in Django?
>
> I am not sure you are using the same terminology as everybody else here;
> a zero-to-many relationship is not a common phrase in relational
> database vocabulary.
>
> Guessing slightly at what you mean: if you want a one-to-many or
> many-to-many relation that can optionally be not specified, then just
> use a ForeignKey (many-to-one) or ManyToMany field with null=True and
> blank=True. If that is not what you are after, can you be a provide an
> example of what you want?
>
> Regards,
> Malcolm
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to