You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
497 B
16 lines
497 B
import pydash as _;
|
|
from django.core.management import BaseCommand
|
|
|
|
_.map = _.map_;
|
|
_.filter = _.filter_
|
|
|
|
from projects.models import BuildingClassfication
|
|
|
|
|
|
class Command(BaseCommand):
|
|
def handle(self, *args, **options):
|
|
print('---------------------------------------')
|
|
print('Generating building classifications...')
|
|
print('---------------------------------------')
|
|
|
|
_.times(lambda i: BuildingClassfication.objects.create(name='Build. classif. %s' % i), 100)
|
|
|