Tweak for part.js

This commit is contained in:
Oliver 2022-04-14 11:04:25 +10:00
parent 7335bfae19
commit 40d6a1470f

View File

@ -373,6 +373,9 @@ function duplicatePart(pk, options={}) {
// Override the "variant_of" field
data.variant_of = pk;
// By default, disable "is_template" when making a variant *of* a template
data.is_template = false;
}
constructForm('{% url "api-part-list" %}', {