From bf0d477f46ea0a88d06a58d4164359a45e9d1e1c Mon Sep 17 00:00:00 2001 From: afkiwers Date: Fri, 9 Feb 2024 10:42:21 +1100 Subject: [PATCH 1/3] fixed url import issue --- inventree_kicad/KiCadLibraryPlugin.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/inventree_kicad/KiCadLibraryPlugin.py b/inventree_kicad/KiCadLibraryPlugin.py index 9fd0bbb..b036db0 100644 --- a/inventree_kicad/KiCadLibraryPlugin.py +++ b/inventree_kicad/KiCadLibraryPlugin.py @@ -10,7 +10,6 @@ from django.core.validators import URLValidator -from django.conf.urls import url from django.http import JsonResponse from django.template.loader import render_to_string from django.urls import include, re_path @@ -168,8 +167,8 @@ def setup_urls(self): re_path('^.*$', viewsets.Index.as_view(), name='kicad-index'), ])), - url(r'upload(?:\.(?Pjson))?$', self.import_meta_data, name='meta_data_upload'), - url(r'progress_bar_status', self.get_import_progress, name='get_import_progress'), + re_path(r'upload(?:\.(?Pjson))?$', self.import_meta_data, name='meta_data_upload'), + re_path(r'progress_bar_status', self.get_import_progress, name='get_import_progress'), # Anything else, redirect to our top-level v1 page re_path('^.*$', viewsets.Index.as_view(), name='kicad-index'), From 6a81951cf81bea841c828b9b4db8952aea941710 Mon Sep 17 00:00:00 2001 From: afkiwers Date: Fri, 9 Feb 2024 10:42:52 +1100 Subject: [PATCH 2/3] bumped version --- inventree_kicad/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inventree_kicad/version.py b/inventree_kicad/version.py index c3fa8b3..397fdb4 100644 --- a/inventree_kicad/version.py +++ b/inventree_kicad/version.py @@ -1 +1 @@ -KICAD_PLUGIN_VERSION = "1.3.14" +KICAD_PLUGIN_VERSION = "1.3.15" From a374466c506c9154300cc978c3a525f33816662a Mon Sep 17 00:00:00 2001 From: afkiwers Date: Fri, 9 Feb 2024 10:49:34 +1100 Subject: [PATCH 3/3] updated readme file --- README.md | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 02b69d6..e683b5a 100644 --- a/README.md +++ b/README.md @@ -56,24 +56,19 @@ The plugin allows you to set default values when the child part lacks specific d ![image](/images/admin_add_category.png) -#### Using Footprint Parameter Mappings +#### Utilizing Footprint Parameter Mapping -If you already have Footprint/Package Type parameters on your parts and -don't want to specify a separate KiCad Footprint Parameter for them, you -can use the Footprint Parameter Mapping functionality to map from it to -KiCad Footprint names. Simply add the desired mappings to the KiCad -Category: +If you have existing Footprint/Package Type parameters assigned to your components and prefer not to define a separate KiCad Footprint Parameter for them, you can leverage the Footprint Parameter Mapping functionality to establish a connection to KiCad Footprint names. Simply incorporate the desired mappings into the KiCad category: ![image](/images/admin_footprint_mappings.png) -You can also use this in combination with the per category "Footprint -Parameter Template" override to use a different Parameter to map from. +Additionally, you can combine this with the per-category "Footprint Parameter Template" override to utilize a different parameter for mapping purposes. ![image](/images/admin_footprint_parameter_override.png) ## Creating User Access Tokens -Head back to the admin backend and click on Tokens. Click on "ADD Token" to generate a token dedicated to a particular user. It is important to emphasize that it is highly advisable to create individual tokens for each user, rather than employing a single token for everyone. +Return to the administrative backend, navigate to the USER model, and access API Tokens. Select "ADD API Token" to generate a token designated for a specific user. It's crucial to highlight the importance of creating separate tokens for each user, rather than using a universal token for everyone. ![image](/images/admin_tokens.png)