On Oct 25, 12:32 am, "Bill Fenner" <[EMAIL PROTECTED]> wrote: > I've got a legacy application with a few tables that only have a > single row, e.g., for configuration information. I can easily get the > info with the following hack: pick a column to be a pretend primary > key (so that django doesn't add the id field), and use > Model.objects.get(foo__isnull=False) - since there is only one row, I > know that will work.
You don't need the ORM, so why not directly use some SQL? from django.db import connection cursor = connection.cursor() cursor.execute... You may lose database portability unless you are especially careful. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---