mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #23423 -- Added unaccent lookup in django.contrib.postgres
This commit is contained in:
committed by
Tim Graham
parent
47789410db
commit
17fe0bd808
@@ -1,7 +1,7 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.contrib.postgres.operations import HStoreExtension
|
||||
from django.contrib.postgres.operations import HStoreExtension, UnaccentExtension
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
@@ -12,4 +12,5 @@ class Migration(migrations.Migration):
|
||||
|
||||
operations = [
|
||||
HStoreExtension(),
|
||||
UnaccentExtension(),
|
||||
]
|
||||
|
||||
@@ -73,4 +73,22 @@ class Migration(migrations.Migration):
|
||||
},
|
||||
bases=(models.Model,),
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='CharFieldModel',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('field', models.CharField(max_length=16)),
|
||||
],
|
||||
options=None,
|
||||
bases=None,
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='TextFieldModel',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('field', models.TextField()),
|
||||
],
|
||||
options=None,
|
||||
bases=None,
|
||||
),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user