mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Fixed #29391 -- Made PostgresSimpleLookup respect Field.get_db_prep_value().
This commit is contained in:
parent
c492fdfd24
commit
5a36c81f58
5 changed files with 42 additions and 9 deletions
|
@ -3,8 +3,8 @@ from django.db import migrations, models
|
|||
|
||||
from ..fields import (
|
||||
ArrayField, BigIntegerRangeField, CICharField, CIEmailField, CITextField,
|
||||
DateRangeField, DateTimeRangeField, DecimalRangeField, HStoreField,
|
||||
IntegerRangeField, JSONField, SearchVectorField,
|
||||
DateRangeField, DateTimeRangeField, DecimalRangeField, EnumField,
|
||||
HStoreField, IntegerRangeField, JSONField, SearchVectorField,
|
||||
)
|
||||
from ..models import TagField
|
||||
|
||||
|
@ -249,4 +249,15 @@ class Migration(migrations.Migration):
|
|||
},
|
||||
bases=(models.Model,),
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='ArrayEnumModel',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
|
||||
('array_of_enums', ArrayField(EnumField(max_length=20), null=True, blank=True)),
|
||||
],
|
||||
options={
|
||||
'required_db_vendor': 'postgresql',
|
||||
},
|
||||
bases=(models.Model,),
|
||||
),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue