

def generate_back_office(self):
    name.stdout.write('Generating Back Office assets')
    back_office_status = BackOfficeAssetStatus()
    status_count = len(back_office_status)
    per_page = (self.object_limit / status_count)
    parent_category = CategoryFactory(name='BACK OFFICE', imei_required=False)
    for i in range(3):
        ProfitCenterFactory()
    for (status_id, name) in back_office_status:
        for i in range(int(per_page)):
            BackOfficeAssetFactory(status=status_id, user=self.get_user(), owner=self.get_user(), model=BackOfficeAssetModelFactory(category=CategoryFactory(parent=parent_category)))
            BackOfficeAssetFactory(status=status_id, user=self.get_user(), owner=self.get_user(), model=BackOfficeAssetModelFactory(category=CategoryFactory(name='Mobile Phone', imei_required=True, parent=parent_category), name='Phone'), imei=get_imei(15))

dataset/ETHPy150Open allegro/ralph/src/ralph/data_importer/management/commands/demodata.py Command.generate_back_office/VarMisuse@10/14 `self`->`name`