On 11/6/07, Jeremy Dunck <[EMAIL PROTECTED]> wrote:
>
> On 11/6/07, Thomas Guettler <[EMAIL PROTECTED]> wrote:
> >
> > You can use a property. Code not tested:
>
> Of course.  I just have about 30 places to do that legwork, which seems silly.

Well, you could write up a function to create the property for you, so
that you don't need quite as much boilerplate. Here's how I figure it
might look.

class Place(models.Model):
    restaurant = make_property('restaurant_set')

I'm sure you can fill in the rest if that approach interests you.

-Gul

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@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-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to