mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #31039 -- Added support for contained_by lookup with AutoFields, SmallIntegerField, and DecimalField.
This commit is contained in:
parent
664521c56a
commit
5d674eac87
6 changed files with 116 additions and 4 deletions
|
@ -124,6 +124,20 @@ class Migration(migrations.Migration):
|
|||
options=None,
|
||||
bases=None,
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='SmallAutoFieldModel',
|
||||
fields=[
|
||||
('id', models.SmallAutoField(verbose_name='ID', serialize=False, primary_key=True)),
|
||||
],
|
||||
options=None,
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='BigAutoFieldModel',
|
||||
fields=[
|
||||
('id', models.BigAutoField(verbose_name='ID', serialize=False, primary_key=True)),
|
||||
],
|
||||
options=None,
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Scene',
|
||||
fields=[
|
||||
|
@ -237,6 +251,8 @@ class Migration(migrations.Migration):
|
|||
('float', models.FloatField(blank=True, null=True)),
|
||||
('timestamp', models.DateTimeField(blank=True, null=True)),
|
||||
('date', models.DateField(blank=True, null=True)),
|
||||
('small_integer', models.SmallIntegerField(blank=True, null=True)),
|
||||
('decimal_field', models.DecimalField(max_digits=5, decimal_places=2, blank=True, null=True)),
|
||||
],
|
||||
options={
|
||||
'required_db_vendor': 'postgresql',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue