Commit 3c2719d4eaf2357b91570562fc725705a2c3ac21
1 parent
74967805
Exists in
master
and in
13 other branches
Wrapped feedzilla update command
Showing
3 changed files
with
10 additions
and
0 deletions
Show diff stats
| ... | ... | @@ -0,0 +1,10 @@ |
| 1 | + | |
| 2 | +from django.conf import settings | |
| 3 | + | |
| 4 | +from feedzilla.management.commands import feedzilla_update | |
| 5 | + | |
| 6 | + | |
| 7 | +class Command(feedzilla_update.Command): | |
| 8 | + def handle(self, *args, **kwargs): | |
| 9 | + if getattr(settings, 'FEEDZILLA_ENABLED', False): | |
| 10 | + super(Command, self).handle(*args, **kwargs) | ... | ... |