mirror of
https://github.com/ansible/awx.git
synced 2026-01-21 14:38:00 -03: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:
parent
dce5ac73c5
commit
b34ee01fb3
@ -1581,7 +1581,7 @@ class Migration(migrations.Migration):
|
||||
migrations.AddField(
|
||||
model_name='job',
|
||||
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(
|
||||
model_name='job',
|
||||
|
||||
@ -487,7 +487,9 @@ class Migration(migrations.Migration):
|
||||
migrations.AddField(
|
||||
model_name='role',
|
||||
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(
|
||||
name='role',
|
||||
|
||||
@ -132,7 +132,9 @@ class Migration(migrations.Migration):
|
||||
migrations.AlterField(
|
||||
model_name='instance',
|
||||
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(
|
||||
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'
|
||||
),
|
||||
),
|
||||
]
|
||||
Loading…
x
Reference in New Issue
Block a user