Skip to content
Snippets Groups Projects
Commit f7c889cb authored by Matthieu Fesselier's avatar Matthieu Fesselier
Browse files

Merge branch 'minor--improve-syntax' into 'master'

minor: improve factories

See merge request startinblox/djangoldp-packages/djangoldp-notifications!4
parents 666cca49 de79b7ae
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,5 @@ class Command(BaseCommand):
parser.add_argument('--size', type=int, default=0, help='Number of notifications to create')
def handle(self, *args, **options):
for i in range(0, options['size']):
notif = NotificationFactory.create()
NotificationFactory.create_batch(options['size'])
self.stdout.write(self.style.SUCCESS('Successful data mock install'))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment