Added management command
This commit is contained in:
parent
a9eb2b4e2c
commit
806f22db17
3 changed files with 10 additions and 0 deletions
0
management/__init__.py
Normal file
0
management/__init__.py
Normal file
0
management/commands/__init__.py
Normal file
0
management/commands/__init__.py
Normal file
10
management/commands/pdfformfiller_make_images.py
Normal file
10
management/commands/pdfformfiller_make_images.py
Normal 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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue