Update fixture for part model to match MPTT requirements

This commit is contained in:
Oliver Walters 2020-05-15 21:44:25 +10:00
parent 0a78432a0f
commit 0652579312

View File

@ -7,6 +7,10 @@
description: 'M2x4 low profile head screw' description: 'M2x4 low profile head screw'
category: 8 category: 8
link: www.acme.com/parts/m2x4lphs link: www.acme.com/parts/m2x4lphs
tree_id: 0
level: 0
lft: 0
rght: 0
- model: part.part - model: part.part
pk: 2 pk: 2
@ -14,6 +18,10 @@
name: 'M3x12 SHCS' name: 'M3x12 SHCS'
description: 'M3x12 socket head cap screw' description: 'M3x12 socket head cap screw'
category: 8 category: 8
tree_id: 0
level: 0
lft: 0
rght: 0
# Create some resistors # Create some resistors
@ -23,6 +31,11 @@
name: 'R_2K2_0805' name: 'R_2K2_0805'
description: '2.2kOhm resistor in 0805 package' description: '2.2kOhm resistor in 0805 package'
category: 2 category: 2
tree_id: 0
level: 0
lft: 0
rght: 0
- model: part.part - model: part.part
fields: fields:
@ -30,6 +43,10 @@
description: '4.7kOhm resistor in 0603 package' description: '4.7kOhm resistor in 0603 package'
category: 2 category: 2
default_location: 2 # Home/Bathroom default_location: 2 # Home/Bathroom
tree_id: 0
level: 0
lft: 0
rght: 0
# Create some capacitors # Create some capacitors
- model: part.part - model: part.part
@ -37,6 +54,10 @@
name: 'C_22N_0805' name: 'C_22N_0805'
description: '22nF capacitor in 0805 package' description: '22nF capacitor in 0805 package'
category: 3 category: 3
tree_id: 0
level: 0
lft: 0
rght: 0
- model: part.part - model: part.part
pk: 25 pk: 25
@ -45,6 +66,10 @@
description: 'A watchamacallit' description: 'A watchamacallit'
category: 7 category: 7
trackable: true trackable: true
tree_id: 0
level: 0
lft: 0
rght: 0
- model: part.part - model: part.part
pk: 50 pk: 50
@ -52,6 +77,10 @@
name: 'Orphan' name: 'Orphan'
description: 'A part without a category' description: 'A part without a category'
category: null category: null
tree_id: 0
level: 0
lft: 0
rght: 0
# A part that can be made from other parts # A part that can be made from other parts
- model: part.part - model: part.part
@ -65,3 +94,7 @@
active: False active: False
IPN: BOB IPN: BOB
revision: A2 revision: A2
tree_id: 0
level: 0
lft: 0
rght: 0