Skip to content

Commit

Permalink
Merge pull request #71 from afkiwers/fix_missing_id
Browse files Browse the repository at this point in the history
fixed missing id when using footprint parameter mapping
  • Loading branch information
afkiwers authored Feb 1, 2024
2 parents 66a7582 + e23d4c6 commit 332d3ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inventree_kicad/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def get_footprint(self, part):
footprint_mappings = FootprintParameterMapping.objects.filter(
kicad_category=kicad_category,
)
template_id = kicad_category.footprint_parameter_template
template_id = kicad_category.footprint_parameter_template.id

if not template_id:
template_id = self.plugin.get_setting('KICAD_FOOTPRINT_PARAMETER', None)
Expand Down

0 comments on commit 332d3ec

Please sign in to comment.