FIX: Add Organization Parameter to Demo Credential (#16474)

Fix demo credential organization in create_preload_data
This commit is contained in:
Hamzah Yousuf
2026-06-03 14:32:16 -04:00
committed by GitHub
parent b4f27de4a2
commit e03899b581

View File

@@ -52,7 +52,11 @@ class Command(BaseCommand):
ssh_type = CredentialType.objects.filter(namespace='ssh').first()
c, _ = Credential.objects.get_or_create(
credential_type=ssh_type, name='Demo Credential', inputs={'username': getattr(superuser, 'username', 'null')}, created_by=superuser
credential_type=ssh_type,
name='Demo Credential',
inputs={'username': getattr(superuser, 'username', 'null')},
created_by=superuser,
organization=o,
)
if superuser: