mirror of
https://github.com/ansible/awx.git
synced 2026-03-22 11:25:08 -02:30
Slightly alter history to avoid having a Django 5 related migration (#16214)
* Slightly alter history to avoid having a Django 5 related migration * Revert prior field states to be slightly more clear
This commit is contained in:
@@ -1581,7 +1581,7 @@ class Migration(migrations.Migration):
|
|||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
model_name='job',
|
model_name='job',
|
||||||
name='hosts',
|
name='hosts',
|
||||||
field=models.ManyToManyField(related_name='jobs', editable=False, through='main.JobHostSummary', to='main.Host'),
|
field=models.ManyToManyField(related_name='jobs', editable=False, through='main.JobHostSummary', through_fields=('job', 'host'), to='main.Host'),
|
||||||
),
|
),
|
||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
model_name='job',
|
model_name='job',
|
||||||
|
|||||||
@@ -487,7 +487,9 @@ class Migration(migrations.Migration):
|
|||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
model_name='role',
|
model_name='role',
|
||||||
name='ancestors',
|
name='ancestors',
|
||||||
field=models.ManyToManyField(related_name='descendents', through='main.RoleAncestorEntry', to='main.Role'),
|
field=models.ManyToManyField(
|
||||||
|
related_name='descendents', through='main.RoleAncestorEntry', through_fields=('descendent', 'ancestor'), to='main.Role'
|
||||||
|
),
|
||||||
),
|
),
|
||||||
migrations.AlterIndexTogether(
|
migrations.AlterIndexTogether(
|
||||||
name='role',
|
name='role',
|
||||||
|
|||||||
@@ -132,7 +132,9 @@ class Migration(migrations.Migration):
|
|||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name='instance',
|
model_name='instance',
|
||||||
name='peers',
|
name='peers',
|
||||||
field=models.ManyToManyField(related_name='peers_from', through='main.InstanceLink', to='main.receptoraddress'),
|
field=models.ManyToManyField(
|
||||||
|
related_name='peers_from', through='main.InstanceLink', through_fields=('source', 'target'), to='main.receptoraddress'
|
||||||
|
),
|
||||||
),
|
),
|
||||||
migrations.AlterField(
|
migrations.AlterField(
|
||||||
model_name='instancelink',
|
model_name='instancelink',
|
||||||
|
|||||||
@@ -1,32 +0,0 @@
|
|||||||
# Generated by Django 5.2.8 on 2025-11-20 18:39
|
|
||||||
|
|
||||||
from django.db import migrations, models
|
|
||||||
|
|
||||||
|
|
||||||
class Migration(migrations.Migration):
|
|
||||||
|
|
||||||
dependencies = [
|
|
||||||
('main', '0204_squashed_deletions'),
|
|
||||||
]
|
|
||||||
|
|
||||||
operations = [
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='instance',
|
|
||||||
name='peers',
|
|
||||||
field=models.ManyToManyField(
|
|
||||||
related_name='peers_from', through='main.InstanceLink', through_fields=('source', 'target'), to='main.receptoraddress'
|
|
||||||
),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='job',
|
|
||||||
name='hosts',
|
|
||||||
field=models.ManyToManyField(editable=False, related_name='jobs', through='main.JobHostSummary', through_fields=('job', 'host'), to='main.host'),
|
|
||||||
),
|
|
||||||
migrations.AlterField(
|
|
||||||
model_name='role',
|
|
||||||
name='ancestors',
|
|
||||||
field=models.ManyToManyField(
|
|
||||||
related_name='descendents', through='main.RoleAncestorEntry', through_fields=('descendent', 'ancestor'), to='main.role'
|
|
||||||
),
|
|
||||||
),
|
|
||||||
]
|
|
||||||
Reference in New Issue
Block a user