1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 01:21:21 +03:00

Merge pull request #6457 from chrismeyersfsu/fix-6452

better insights_credential reverse relationship
This commit is contained in:
Chris Meyers 2017-06-05 15:07:44 -04:00 committed by GitHub
commit beabe62970
2 changed files with 2 additions and 2 deletions

View File

@ -269,7 +269,7 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='inventory',
name='insights_credential',
field=models.ForeignKey(related_name='insights_credential', default=None, blank=True, on_delete=models.deletion.SET_NULL, to='main.Credential', help_text='Credentials to be used by hosts belonging to this inventory when accessing Red Hat Insights API.', null=True),
field=models.ForeignKey(related_name='insights_inventories', on_delete=models.deletion.SET_NULL, default=None, blank=True, to='main.Credential', help_text='Credentials to be used by hosts belonging to this inventory when accessing Red Hat Insights API.', null=True),
),
migrations.AlterField(
model_name='inventory',

View File

@ -146,7 +146,7 @@ class Inventory(CommonModelNameNotUnique, ResourceMixin):
])
insights_credential = models.ForeignKey(
'Credential',
related_name='insights_credential',
related_name='insights_inventories',
help_text=_('Credentials to be used by hosts belonging to this inventory when accessing Red Hat Insights API.'),
on_delete=models.SET_NULL,
blank=True,