syntax: improve factories
This commit is contained in:
parent
666cca49e5
commit
de79b7aed3
@ -8,7 +8,5 @@ class Command(BaseCommand):
|
|||||||
parser.add_argument('--size', type=int, default=0, help='Number of notifications to create')
|
parser.add_argument('--size', type=int, default=0, help='Number of notifications to create')
|
||||||
|
|
||||||
def handle(self, *args, **options):
|
def handle(self, *args, **options):
|
||||||
for i in range(0, options['size']):
|
NotificationFactory.create_batch(options['size'])
|
||||||
notif = NotificationFactory.create()
|
|
||||||
|
|
||||||
self.stdout.write(self.style.SUCCESS('Successful data mock install'))
|
self.stdout.write(self.style.SUCCESS('Successful data mock install'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user