Add peers_from for reverse peers M2M

use devel receptor-collection
This commit is contained in:
Seth Foster 2023-07-11 16:22:16 -04:00 committed by Seth Foster
parent 6c3bbfc3be
commit d15405eafe
3 changed files with 9 additions and 4 deletions

View File

@ -1,4 +1,5 @@
---
collections:
- name: ansible.receptor
version: 1.1.0
- name: https://github.com/ansible/receptor-collection.git
type: git
version: main

View File

@ -27,6 +27,11 @@ class Migration(migrations.Migration):
name='peers_from_control_nodes',
field=models.BooleanField(default=False, help_text='If True, control plane cluster nodes should automatically peer to it.'),
),
migrations.AlterField(
model_name='instance',
name='peers',
field=models.ManyToManyField(related_name='peers_from', through='main.InstanceLink', to='main.instance'),
),
migrations.AlterField(
model_name='instancelink',
name='link_state',

View File

@ -82,7 +82,6 @@ STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'ui_next', 'build'),
os.path.join(BASE_DIR, 'static'),
]
/awx_devel/awx/ui_next/build
# Absolute filesystem path to the directory where static file are collected via
# the collectstatic command.
@ -305,7 +304,7 @@ TEMPLATES = [
os.path.join(BASE_DIR, 'templates'),
os.path.join(BASE_DIR, 'ui', 'build'),
os.path.join(BASE_DIR, 'ui', 'public'),
os.path.join(BASE_DIR, '/awx/ui_next', 'build', 'awx'),
os.path.join(BASE_DIR, 'ui_next', 'build', 'awx'),
],
},
]