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:
Chris Meyers
2026-02-09 16:14:58 -05:00
committed by Chris Meyers
parent 980d9db192
commit fd847862a7

View File

@@ -12,7 +12,7 @@ def update_github_app_kind(apps, schema_editor):
"""
CredentialType = apps.get_model('main', 'CredentialType')
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 ---