소스 검색

Miscellaneous cleanup

Jeremy Stretch 9 년 전
부모
커밋
96eaea7db9
2개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 1
      netbox/extras/forms.py
  2. 1 1
      netbox/ipam/forms.py

+ 0 - 1
netbox/extras/forms.py

@@ -142,7 +142,6 @@ class CustomFieldBulkEditForm(BulkEditForm):
             self.fields[name] = field
             # Annotate this as a custom field
             self.custom_fields.append(name)
-        print(self.nullable_fields)
 
 
 class CustomFieldFilterForm(forms.Form):

+ 1 - 1
netbox/ipam/forms.py

@@ -288,7 +288,7 @@ class IPAddressForm(BootstrapMixin, CustomFieldForm):
     class Meta:
         model = IPAddress
         fields = ['address', 'vrf', 'tenant', 'status', 'nat_inside', 'description']
-        widgets ={
+        widgets = {
             'nat_inside': APISelect(api_url='/api/ipam/ip-addresses/?device_id={{nat_device}}', display_field='address')
         }