Hi Alex + Malcolm, On Mar 9, 4:03 pm, Malcolm Tredinnick <malc...@pointy-stick.com> wrote: > On Sun, 2009-03-08 at 21:58 -0700, Matt Doran wrote: > > Hi there, > > > I'm porting another system across to Django, and I need to create a > > multi-column unique index. I previously used SQLObject which has a > > syntax for doing this. > > > Also, if you're doing anything complex in custom SQL, use the > post_syncdb signal, rather than the initial data hooks. The latter hooks > don't contain a full SQL parser (and we have no intention to extend it > more than it is), so it can be confused for complicated things. For > index creation, it's probably fine. But if you get to the point of > wanting to add triggers or something, then use post_syncdb signal > handlers. >
Thanks guys .... looks like "unique_together" is what I'm after for this simple case. Regards, Matt --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---