Skip to content

Commit 7c9a484

Browse files
SilviaAmAmsvenvandescheur
authored andcommitted
🧑‍💻 Add management command to resync zaken
1 parent df4ef13 commit 7c9a484

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from django.core.management import BaseCommand
2+
3+
from ...tasks import resync_zaken
4+
5+
6+
class Command(BaseCommand):
7+
help = "Resync the zaken cached locally with Open Zaak."
8+
9+
def handle(self, **options):
10+
self.stdout.write("Retrieving zaken from Open Zaak...")
11+
12+
resync_zaken()
13+
14+
self.stdout.write("Done.")

0 commit comments

Comments
 (0)