From 806f22db176f3af1524adaaec2b0b4265830baac Mon Sep 17 00:00:00 2001 From: Mark Riedesel Date: Thu, 14 Nov 2013 04:54:45 -0600 Subject: [PATCH] Added management command --- management/__init__.py | 0 management/commands/__init__.py | 0 management/commands/pdfformfiller_make_images.py | 10 ++++++++++ 3 files changed, 10 insertions(+) create mode 100644 management/__init__.py create mode 100644 management/commands/__init__.py create mode 100644 management/commands/pdfformfiller_make_images.py diff --git a/management/__init__.py b/management/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/management/commands/__init__.py b/management/commands/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/management/commands/pdfformfiller_make_images.py b/management/commands/pdfformfiller_make_images.py new file mode 100644 index 0000000..c41060f --- /dev/null +++ b/management/commands/pdfformfiller_make_images.py @@ -0,0 +1,10 @@ +from django.core.management.base import BaseCommand +from pdfformfiller import models + +class Command(BaseCommand): + help = "Regenerate all document page images" + + def handle(self, *args, **options): + for doc in models.Document.objects.all(): + doc.process_pages() +