mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 23:07:42 -02:30
Replace all usage of customized json fields with the Django builtin
The event_data field on event models, however, is getting an overridden version that retains the underlying text data type for the column, to avoid a heavy data migration on those tables. Also, certain of the larger tables are getting these fields with the NOT NULL constraint turned off, to avoid a long migration. Remove the django.utils.six monkey patch we did at the beginning of the upgrade.
This commit is contained in:
@@ -3,7 +3,6 @@ from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations, models
|
||||
from decimal import Decimal
|
||||
import awx.main.fields
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
@@ -16,8 +15,8 @@ class Migration(migrations.Migration):
|
||||
migrations.AddField(
|
||||
model_name='instancegroup',
|
||||
name='policy_instance_list',
|
||||
field=awx.main.fields.JSONField(
|
||||
default=[], help_text='List of exact-match Instances that will always be automatically assigned to this group', blank=True
|
||||
field=models.JSONField(
|
||||
default=list, help_text='List of exact-match Instances that will always be automatically assigned to this group', blank=True
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
|
||||
Reference in New Issue
Block a user