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):
|
if (CREATED):
|
||||||
print('Created Equipment: ' + data['name'])
|
print('Created Equipment: ' + data['name'])
|
||||||
# Generate 3 equipment instances per SKU
|
# Generate 3 equipment instances per SKU
|
||||||
for x in range(3):
|
for x in range(3):
|
||||||
EQUIPMENT_INSTANCE = EquipmentInstance.objects.create(
|
EQUIPMENT_INSTANCE = EquipmentInstance.objects.create(
|
||||||
equipment=EQUIPMENT,
|
equipment=EQUIPMENT,
|
||||||
status='Available',
|
status='Available',
|
||||||
remarks=data['remarks']
|
remarks=data['remarks']
|
||||||
)
|
)
|
||||||
print('Created Equipment Instances: ' +
|
print('Created Equipment Instances: ' +
|
||||||
EQUIPMENT_INSTANCE.equipment.name)
|
EQUIPMENT_INSTANCE.equipment.name)
|
||||||
|
|
Loading…
Reference in a new issue