Re: contextual ForeignKey?

2007-04-25 Thread chrominance
You may also want to look at this prelim generic relations UI for the admin view: http://net-x.org/weblog/2006/nov/29/django-generic-relations-made-easier/ On Apr 25, 8:58 pm, Drasty <[EMAIL PROTECTED]> wrote: > Thanks for the suggestion. Even if it doesn't work--I haven't really > looked at Gene

Re: contextual ForeignKey?

2007-04-25 Thread Drasty
Thanks for the suggestion. Even if it doesn't work--I haven't really looked at Generic Relations before--it'll be fun figuring out how to play with them. I'll put something up if I figure out anything useful, either here or at djangosnippets.org Erik On Apr 25, 7:01 pm, "Russell Keith-Magee" <[E

Re: contextual ForeignKey?

2007-04-25 Thread Russell Keith-Magee
On 4/25/07, Erik Vorhes <[EMAIL PROTECTED]> wrote: > > Since I'm only reviewing one thing in each Review, it'd be possible to > change ForeignKey to OneToOneField, but (aside from likely changes to > the way Django handles one-to-one relationships), that doesn't change > my predicament. > > I'd ap

contextual ForeignKey?

2007-04-25 Thread Erik Vorhes
In my app I have a model, "Review," that uses a different (ForeignKey) citation form depending on the type of thing I'm reviewing. I'd like to be able to call a different ForeignKey dynamically based on the citation type but keep running into a bunch of errors. Here's my current "Review" model co