Re: multiple one-to-one relationships

2008-07-16 Thread Eric Abrahamsen
> As documented in the backwards-incompatibility notes from the > queryset-refactor merge, OneToOneFields in (existing) admin are not > supported. They didn't work before the qsrf merge reliably, either, so > no functionality was lost in the process. Sweet, I'm switching to nf-ad. Thanks a lot.

Re: multiple one-to-one relationships

2008-07-16 Thread Malcolm Tredinnick
On Wed, 2008-07-16 at 22:35 +0800, Eric Abrahamsen wrote: > > Saving how, exactly? If admin, newforms-admin or old admin? If old > > admin, have you tried it on newforms-admin -- bugs in old admin are > > unlikely to get any attention at this point. If saving in your own > > code, more d

Re: multiple one-to-one relationships

2008-07-16 Thread Eric Abrahamsen
> Saving how, exactly? If admin, newforms-admin or old admin? If old > admin, have you tried it on newforms-admin -- bugs in old admin are > unlikely to get any attention at this point. If saving in your own > code, more details of that code would help. > This is saving through the old a

Re: multiple one-to-one relationships

2008-07-16 Thread Karen Tracey
On Wed, Jul 16, 2008 at 2:49 AM, Eric Abrahamsen <[EMAIL PROTECTED]> wrote: > I've got an issue with multiple one-to-one relationships, which > probably arises from poor design decisions on my part. Given a model > like the following: > > class Translator

multiple one-to-one relationships

2008-07-15 Thread Eric Abrahamsen
I've got an issue with multiple one-to-one relationships, which probably arises from poor design decisions on my part. Given a model like the following: class Translator(models.Model): user = models.OneToOneField(User, unique=True, blank=True, null=True, help_text="If this

Re: Multiple one-to-one relationships for a single class

2007-08-31 Thread pength
ECTED]> wrote: > Hello > > Is it possible to have multiple one-to-one relationships for a single > class or is there a better way to do it. > > What I have is an event which has about 12 fields. Optionally any > combination of a single weather record, a single event detail rec

Re: Multiple one-to-one relationships for a single class

2007-08-31 Thread Nis Jørgensen
Malcolm Tredinnick skrev: > On Tue, 2007-08-21 at 21:21 -0700, Catriona wrote: > >> What I have is an event which has about 12 fields. Optionally any >> combination of a single weather record, a single event detail record, >> a single survey record and one of four event subclass records may be

Re: Multiple one-to-one relationships for a single class

2007-08-21 Thread Catriona
Catriona On Aug 22, 2:42 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Tue, 2007-08-21 at 21:21 -0700, Catriona wrote: > > Hello > > > Is it possible to have multiple one-to-one relationships for a single > > class or is there a better way to do it. > >

Re: Multiple one-to-one relationships for a single class

2007-08-21 Thread Malcolm Tredinnick
On Tue, 2007-08-21 at 21:21 -0700, Catriona wrote: > Hello > > Is it possible to have multiple one-to-one relationships for a single > class or is there a better way to do it. Not at the moment, no. OneToOneFields assume they are going to be the primary key, so you're restricte

Multiple one-to-one relationships for a single class

2007-08-21 Thread Catriona
Hello Is it possible to have multiple one-to-one relationships for a single class or is there a better way to do it. What I have is an event which has about 12 fields. Optionally any combination of a single weather record, a single event detail record, a single survey record and one of four