From 413968a979477d767dc04d9203c5b3205c81708f Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 1 Dec 2021 22:28:43 +0100 Subject: [PATCH 1/4] load minified js --- InvenTree/templates/base.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/InvenTree/templates/base.html b/InvenTree/templates/base.html index 262a749bfa..448d06b23f 100644 --- a/InvenTree/templates/base.html +++ b/InvenTree/templates/base.html @@ -121,6 +121,7 @@ {% include 'modals.html' %} {% include 'about.html' %} + {% include "notifications.html" %} @@ -180,9 +181,9 @@ - - - + + + {% block js_load %} {% endblock %} From 95fa34f797ba7c00644df2209869cbfa38c77d12 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 1 Dec 2021 23:56:31 +0100 Subject: [PATCH 2/4] search by MPN Fixes #2403 --- InvenTree/part/api.py | 1 + 1 file changed, 1 insertion(+) diff --git a/InvenTree/part/api.py b/InvenTree/part/api.py index 403934d3d9..ac27b1c3bc 100644 --- a/InvenTree/part/api.py +++ b/InvenTree/part/api.py @@ -1075,6 +1075,7 @@ class PartList(generics.ListCreateAPIView): 'revision', 'keywords', 'category__name', + 'MPN', ] From 8c3b4badfb1d4ed7356fc3af4a78a73a6bdab682 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 2 Dec 2021 00:08:46 +0100 Subject: [PATCH 3/4] and cleanup again --- InvenTree/templates/base.html | 1 - 1 file changed, 1 deletion(-) diff --git a/InvenTree/templates/base.html b/InvenTree/templates/base.html index 448d06b23f..5cd09f854e 100644 --- a/InvenTree/templates/base.html +++ b/InvenTree/templates/base.html @@ -121,7 +121,6 @@ {% include 'modals.html' %} {% include 'about.html' %} - {% include "notifications.html" %} From 3bff6760479fb0ea291dd8ed1347ea01ceac0459 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 2 Dec 2021 00:24:36 +0100 Subject: [PATCH 4/4] beginner mistake it is a referenced part so use related_name as prefix --- InvenTree/part/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/part/api.py b/InvenTree/part/api.py index ac27b1c3bc..dbc1140214 100644 --- a/InvenTree/part/api.py +++ b/InvenTree/part/api.py @@ -1075,7 +1075,7 @@ class PartList(generics.ListCreateAPIView): 'revision', 'keywords', 'category__name', - 'MPN', + 'manufacturer_parts__MPN', ]