Skip to content

Commit

Permalink
default link fields to empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrey committed Nov 6, 2024
1 parent cc4f9db commit 75ef0a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions programs/migrations/0096_document_link_defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ def add_document_links(apps, schema_editor):
for document in Document.objects.all():
translation_link_url = Translation.objects.add_translation(
f"document.{document.external_name or uuid.uuid4()}-{document.id}_link_url",
"[PLACEHOLDER]",
"",
)
translation_link_text = Translation.objects.add_translation(
f"document.{document.external_name or uuid.uuid4()}-{document.id}_link_text",
"[PLACEHOLDER]",
"",
)
Document.objects.filter(pk=document.id).update(
link_url=translation_link_url.id, link_text=translation_link_text.id
Expand Down

0 comments on commit 75ef0a9

Please sign in to comment.