☰
Debian Codegraph
@
5.3.1+github1-1
4.2.1-2
/
/
tests
/
testapp
/
management
/
commands
/
count.py
☽
☼
tests/testapp/management/commands/count.py
code
plain
raw
BSD-3-Clause
2010, Michael Shepanski
debian/copyright
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()))