I was trying to enable the unaccent postgresql extension using a database migration as hinted here:
https://docs.djangoproject.com/en/1.8/ref/contrib/postgres/lookups/#unaccent I created an empty migration and then added the UnaccentExtension operation and ran the migration but the database command "CREATE EXTENSION unaccent" did not get run on my database even though the migration ran without error. Here is my migration file: # -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models from django.contrib.postgres.operations import UnaccentExtension class Migration(migrations.Migration): dependencies = [ ('maps', '0010_auto_20151010_1756'), ] operations = [ UnaccentExtension(), ] Any ideas on how to fix this migration file so that it works? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/e0095f5e-6dd0-4cc5-af28-8c910bec285f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.