diff options
Diffstat (limited to 'forum/management/commands/sample_command.py')
-rw-r--r-- | forum/management/commands/sample_command.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/forum/management/commands/sample_command.py b/forum/management/commands/sample_command.py new file mode 100644 index 00000000..55e67235 --- /dev/null +++ b/forum/management/commands/sample_command.py @@ -0,0 +1,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
\ No newline at end of file |