from django.core.management.base import BaseCommand, CommandError
from shorten.models import KirrURL


class Command(BaseCommand):
    help = 'Refresh all shortcodes'

    def add_arguments(self, parser):
        parser.add_argument('--items', type=int)

    def handle(self, *args, **options):
        return KirrURL.objects.refresh_shortcode(items=options['items'])

f9595838ef33b69a5ccbbd0850760ce7a461bda6
<mask token>


class Command(BaseCommand):
    <mask token>

    def add_arguments(self, parser):
        parser.add_argument('--items', type=int)
    <mask token>

<mask token>


class Command(BaseCommand):
    <mask token>

    def add_arguments(self, parser):
        parser.add_argument('--items', type=int)

    def handle(self, *args, **options):
        return KirrURL.objects.refresh_shortcode(items=options['items'])

<mask token>


class Command(BaseCommand):
    help = 'Refresh all shortcodes'

    def add_arguments(self, parser):
        parser.add_argument('--items', type=int)

    def handle(self, *args, **options):
        return KirrURL.objects.refresh_shortcode(items=options['items'])

from django.core.management.base import BaseCommand, CommandError
from shorten.models import KirrURL


class Command(BaseCommand):
    help = 'Refresh all shortcodes'

    def add_arguments(self, parser):
        parser.add_argument('--items', type=int)

    def handle(self, *args, **options):
        return KirrURL.objects.refresh_shortcode(items=options['items'])
