Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ def MigrateProfileManager(apps: Any, schema_editor: Any) -> None:
which has distinct profile manager."""

for index, custom_prompt in enumerate(custom_prompts):
"""There can be scenario where individual prompts wont have a
profile manager attached."""
if not custom_prompt.profile_manager:
continue
profile_manager = ProfileManager.objects.get(
pk=custom_prompt.profile_manager.profile_id
)
Expand Down