mirror of
https://github.com/lemeow125/Borrowing-TrackerBackend.git
synced 2024-11-16 22:09:27 +08:00
Update postmgiration script for equipments
This commit is contained in:
parent
6d25157c5f
commit
02df5b5ea9
1 changed files with 9 additions and 9 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue