mirror of
https://github.com/ansible/awx.git
synced 2026-03-21 02:47:35 -02:30
Fix wrong field rename
* Multiple credentialtype's have the same kind and kind values look like: cloud, network, machine, etc. * namespace is the field that we want to rename
This commit is contained in:
committed by
Chris Meyers
parent
980d9db192
commit
fd847862a7
@@ -12,7 +12,7 @@ def update_github_app_kind(apps, schema_editor):
|
|||||||
"""
|
"""
|
||||||
CredentialType = apps.get_model('main', 'CredentialType')
|
CredentialType = apps.get_model('main', 'CredentialType')
|
||||||
db_alias = schema_editor.connection.alias
|
db_alias = schema_editor.connection.alias
|
||||||
CredentialType.objects.using(db_alias).filter(kind='github_app').update(kind='github_app_lookup')
|
CredentialType.objects.using(db_alias).filter(namespace='github_app').update(namespace='github_app_lookup')
|
||||||
|
|
||||||
|
|
||||||
# --- END of function merged from 0203_rename_github_app_kind.py ---
|
# --- END of function merged from 0203_rename_github_app_kind.py ---
|
||||||
|
|||||||
Reference in New Issue
Block a user