Commit d0ae49f0 by dima

Adding managment commands in project

parent 7332ab6d
from django.core.management import BaseCommand
from goip.tasks import reset_sms_count_limit_task
class Command(BaseCommand):
help = "Update SMS count in DB"
def handle(self, *args, **options):
reset_sms_count_limit_task.delay()
from django.core.management import BaseCommand
from goip.tasks import update_sms_count_limit_task
class Command(BaseCommand):
help = "Reset SMS count limit in GOIP"
def handle(self, *args, **options):
update_sms_count_limit_task.delay()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment