Debian Codegraph @

tests/testapp/management/commands/count.py

raw
1 from django.core.management.base import BaseCommand
2
3 from tests.testapp.models import CharModel
4
5
6 class Command(BaseCommand):
7 help = "Count things"
8
9 def handle(self, **options):
10 self.stdout.write(str(CharModel.objects.count()))