ForeignKey with 0 meaning Null

2008-07-07 Thread Nick Craig-Wood
null=True """ def __get__(self, instance, *args, **kwargs): # never gets called print "Instance %r " % instance def to_python(self, value): # never gets called print "to_python %r" % value I'm using svn of few da

Re: ForeignKey with 0 meaning Null

2008-07-12 Thread Nick Craig-Wood
Nick Craig-Wood <[EMAIL PROTECTED]> wrote: > > I'm adapting a legacy database for use with Django and I've come > across a problem I haven't been able to solve! > > The database has ForeignKey fields which are sometimes 0, meaning > there is no r