]> git.0d.be Git - chloro.git/commitdiff
update reindex command to also create interlinks
authorFrédéric Péters <fpeters@0d.be>
Sun, 24 Jul 2022 15:43:25 +0000 (17:43 +0200)
committerFrédéric Péters <fpeters@0d.be>
Sun, 24 Jul 2022 15:43:25 +0000 (17:43 +0200)
chloro/phyll/management/commands/reindex.py

index bd304e34501cd1dbab6fdee8eb427ef83da44b27..964fefce99dec09af112b0ce0046d0fbca9d3626 100644 (file)
@@ -22,5 +22,6 @@ from chloro.phyll.models import Note
 
 class Command(BaseCommand):
     def handle(self, verbosity, **options):
+        # recreate plain text version and interlinks
         for note in Note.objects.all():
-            note.save(update_fields=['plain_text'])
+            note.save()