summaryrefslogtreecommitdiffstats
path: root/forum/management/commands/sample_command.py
blob: 55e67235dcebc60cb1c9ec3056cb286fe003793a (plain)
1
2
3
4
5
6
7
from django.core.management.base import NoArgsCommand
from forum.models import Comment

class Command(NoArgsCommand):
    def handle_noargs(self, **options):
        objs = Comment.objects.all()
        print objs