Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
improve datamigration for other production instances
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreJunod committed Mar 12, 2024
1 parent 7b07deb commit 742a3d8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ def update_sectionparagraph(apps, schema_editor):

# Update sections containing "div" or "class" or "table"
sections_with_keywords = (
SectionParagraph.objects.filter(content__contains="div")
| SectionParagraph.objects.filter(content__contains="class")
| SectionParagraph.objects.filter(content__contains="table")
SectionParagraph.objects.filter(content__contains="<div")
| SectionParagraph.objects.filter(content__contains="class=")
| SectionParagraph.objects.filter(content__contains="<table")
)

for section in sections_with_keywords:
Expand Down

0 comments on commit 742a3d8

Please sign in to comment.