fix typo: customer_id -> custom_id
This commit is contained in:
parent
5b84d81590
commit
e3b0d70f04
|
@ -23,7 +23,7 @@ DEVICE_TYPES = [
|
||||||
class DeviceForm(forms.Form):
|
class DeviceForm(forms.Form):
|
||||||
type = forms.ChoiceField(choices = DEVICE_TYPES, required=False)
|
type = forms.ChoiceField(choices = DEVICE_TYPES, required=False)
|
||||||
amount = forms.IntegerField(required=False, initial=1)
|
amount = forms.IntegerField(required=False, initial=1)
|
||||||
customer_id = forms.CharField(required=False)
|
custom_id = forms.CharField(required=False)
|
||||||
name = forms.CharField(required=False)
|
name = forms.CharField(required=False)
|
||||||
value = forms.CharField(required=False)
|
value = forms.CharField(required=False)
|
||||||
|
|
||||||
|
@ -49,8 +49,8 @@ class BaseDeviceFormSet(forms.BaseFormSet):
|
||||||
row["amount"] = d["amount"]
|
row["amount"] = d["amount"]
|
||||||
if d.get("name"):
|
if d.get("name"):
|
||||||
row[d["name"]] = d.get("value", '')
|
row[d["name"]] = d.get("value", '')
|
||||||
if d.get("customer_id"):
|
if d.get("custom_id"):
|
||||||
row['CUSTOMER_ID']= d["customer_id"]
|
row['CUSTOM_ID']= d["custom_id"]
|
||||||
|
|
||||||
doc = create_doc(row)
|
doc = create_doc(row)
|
||||||
if not commit:
|
if not commit:
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="row mb-2">
|
<div class="row mb-2">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
{% bootstrap_field form.0.customer_id %}
|
{% bootstrap_field form.0.custom_id %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row mb-2">
|
<div class="row mb-2">
|
||||||
|
|
Loading…
Reference in New Issue