Skip to content

Commit bb8dc00

Browse files
committed
Add apply_manual to migration
1 parent 3a43891 commit bb8dc00

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

temba/msgs/migrations/0286_update_quick_replies.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,15 @@ def update_quick_replies(apps, schema_editor):
2020
broadcast.save(update_fields=("translations",))
2121
num_updated += 1
2222

23-
if num_updated % 1000 == 0: # pragma: no cover
2423
print(f"Updated {num_updated} broadcasts with quick replies")
2524

2625

26+
def apply_manual(): # pragma: no cover
27+
from django.apps import apps
28+
29+
update_quick_replies(apps, None)
30+
31+
2732
class Migration(migrations.Migration):
2833

2934
dependencies = [

0 commit comments

Comments
 (0)