Added management command

This commit is contained in:
Mark Riedesel 2013-11-14 04:54:45 -06:00
parent a9eb2b4e2c
commit 806f22db17
3 changed files with 10 additions and 0 deletions

0
management/__init__.py Normal file
View file

View file

View file

@ -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()