Hi, On Jan 3, 12:28 pm, Matt Wilson <[EMAIL PROTECTED]> wrote: > This is the postgresql index I want to create: > > CREATE UNIQUE INDEX v2category_nameIndex ON v2category > (v2organization_id, parent_category, lower(name)); > > How do I create this index with the Django model?
This will get you close but it doesn't support function calls (like lower()): http://www.djangoproject.com/documentation/model-api/#unique-together So, you will need to create that INDEX through custom sql, if that function call is necessary: http://www.djangoproject.com/documentation/django-admin/#sqlcustom-appname-appname -Rajesh D --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] 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 -~----------~----~----~----~------~----~------~--~---

