Hi, On Tue, 2006-04-11 at 09:24 -0500, Adrian Holovaty wrote: > That's not possible with the Django ORM, but you can drop into raw SQL > quite easily. See this page for an example: > http://www.djangoproject.com/documentation/models/custom_methods/
Thanks Adrian, this is exactly what I was looking for. One little point for those reading this thread and using magic-removal: those docs are for 0.91, so there are some minor changes. The django.core.db object is now called django.db.connection (documented on the RemovingTheMagic page), and does not seem to be automatically available to custom methods (ie, you need to import it). Cheers, Russell --~--~---------~--~----~------------~-------~--~----~ 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, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---