diff --git a/equipment_tracker/equipments/models.py b/equipment_tracker/equipments/models.py index 7c4119e..47a8950 100644 --- a/equipment_tracker/equipments/models.py +++ b/equipment_tracker/equipments/models.py @@ -72,12 +72,12 @@ def create_superuser(sender, **kwargs): ) if (CREATED): print('Created Equipment: ' + data['name']) - # Generate 3 equipment instances per SKU - for x in range(3): - EQUIPMENT_INSTANCE = EquipmentInstance.objects.create( - equipment=EQUIPMENT, - status='Available', - remarks=data['remarks'] - ) - print('Created Equipment Instances: ' + - EQUIPMENT_INSTANCE.equipment.name) + # Generate 3 equipment instances per SKU + for x in range(3): + EQUIPMENT_INSTANCE = EquipmentInstance.objects.create( + equipment=EQUIPMENT, + status='Available', + remarks=data['remarks'] + ) + print('Created Equipment Instances: ' + + EQUIPMENT_INSTANCE.equipment.name)