Re: I'm having some trouble with GenericForeignKey

2009-03-20 Thread Brian McKeever
Thank you. I appreciate the quick response. --~--~-~--~~~---~--~~ 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,

Re: I'm having some trouble with GenericForeignKey

2009-03-20 Thread Alex Gaynor
On Fri, Mar 20, 2009 at 6:28 PM, Brian McKeever wrote: > > What am I doing wrong? > Is there any other way to do what I want? > I'm basically trying to implement the GOF's strategy design pattern > (the real code is more complicated than this example). > > ## my models > class

I'm having some trouble with GenericForeignKey

2009-03-20 Thread Brian McKeever
What am I doing wrong? Is there any other way to do what I want? I'm basically trying to implement the GOF's strategy design pattern (the real code is more complicated than this example). ## my models class Donkey(models.Model): name = models.CharField(max_length=11) class Barn(