Skip to content

Commit fd84786

Browse files
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
1 parent 980d9db commit fd84786

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

awx/main/migrations/0204_squashed_deletions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def update_github_app_kind(apps, schema_editor):
1212
"""
1313
CredentialType = apps.get_model('main', 'CredentialType')
1414
db_alias = schema_editor.connection.alias
15-
CredentialType.objects.using(db_alias).filter(kind='github_app').update(kind='github_app_lookup')
15+
CredentialType.objects.using(db_alias).filter(namespace='github_app').update(namespace='github_app_lookup')
1616

1717

1818
# --- END of function merged from 0203_rename_github_app_kind.py ---

0 commit comments

Comments
 (0)