Browse Source

PEP8 cleanup

Jeremy Stretch 8 years ago
parent
commit
1bbe7f95d6
3 changed files with 5 additions and 5 deletions
  1. 3 3
      netbox/dcim/tables.py
  2. 1 1
      netbox/ipam/tables.py
  3. 1 1
      netbox/ipam/views.py

+ 3 - 3
netbox/dcim/tables.py

@@ -87,7 +87,7 @@ class RackGroupTable(BaseTable):
     rack_count = tables.Column(verbose_name='Racks')
     slug = tables.Column(verbose_name='Slug')
     actions = tables.TemplateColumn(template_code=RACKGROUP_ACTIONS, attrs={'td': {'class': 'text-right'}},
-                                 verbose_name='')
+                                    verbose_name='')
 
     class Meta(BaseTable.Meta):
         model = RackGroup
@@ -139,7 +139,7 @@ class ManufacturerTable(BaseTable):
     devicetype_count = tables.Column(verbose_name='Device Types')
     slug = tables.Column(verbose_name='Slug')
     actions = tables.TemplateColumn(template_code=MANUFACTURER_ACTIONS, attrs={'td': {'class': 'text-right'}},
-                                 verbose_name='')
+                                    verbose_name='')
 
     class Meta(BaseTable.Meta):
         model = Manufacturer
@@ -236,7 +236,7 @@ class DeviceRoleTable(BaseTable):
     slug = tables.Column(verbose_name='Slug')
     color = tables.Column(verbose_name='Color')
     actions = tables.TemplateColumn(template_code=DEVICEROLE_ACTIONS, attrs={'td': {'class': 'text-right'}},
-                                 verbose_name='')
+                                    verbose_name='')
 
     class Meta(BaseTable.Meta):
         model = DeviceRole

+ 1 - 1
netbox/ipam/tables.py

@@ -205,7 +205,7 @@ class VLANGroupTable(BaseTable):
     vlan_count = tables.Column(verbose_name='VLANs')
     slug = tables.Column(verbose_name='Slug')
     actions = tables.TemplateColumn(template_code=VLANGROUP_ACTIONS, attrs={'td': {'class': 'text-right'}},
-                                 verbose_name='')
+                                    verbose_name='')
 
     class Meta(BaseTable.Meta):
         model = VLANGroup

+ 1 - 1
netbox/ipam/views.py

@@ -151,7 +151,7 @@ class AggregateListView(ObjectListView):
             if a.prefix.version == 4:
                 ipv4_total += a.prefix.size
             elif a.prefix.version == 6:
-                ipv6_total += a.prefix.size / 2**64
+                ipv6_total += a.prefix.size / 2 ** 64
 
         return {
             'ipv4_total': ipv4_total,