__copyright__ = "Copyright © Stichting SciPost (SciPost Foundation)"
__license__ = "AGPL v3"
from django.core.management.base import BaseCommand
from comments.factories import CommentaryCommentFactory,\
ThesislinkCommentFactory, ReplyCommentFactory
[docs]class Command(BaseCommand):
[docs] def add_arguments(self, parser):
parser.add_argument(
'--comments',
action='store_true',
dest='comments',
default=False,
help='Add 10 Comments',
)
[docs] def handle(self, *args, **kwargs):
if kwargs['comments']:
self.create_comments()