mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-09 00:58:16 -06:00
9627 fix tests
This commit is contained in:
parent
1560fff2af
commit
0ec51039f8
@ -22,7 +22,7 @@ __all__ = (
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class NumericRangeArraySerializer(serializers.BaseSerializer):
|
class NumericRangeArraySerializer(serializers.CharField):
|
||||||
def to_internal_value(self, data):
|
def to_internal_value(self, data):
|
||||||
return string_to_range_array(data)
|
return string_to_range_array(data)
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ class Migration(migrations.Migration):
|
|||||||
migrations.AddField(
|
migrations.AddField(
|
||||||
model_name='vlangroup',
|
model_name='vlangroup',
|
||||||
name='_total_vlan_ids',
|
name='_total_vlan_ids',
|
||||||
field=models.PositiveBigIntegerField(default=0),
|
field=models.PositiveBigIntegerField(default=4094),
|
||||||
),
|
),
|
||||||
migrations.RunPython(
|
migrations.RunPython(
|
||||||
code=move_min_max,
|
code=move_min_max,
|
||||||
|
@ -61,7 +61,7 @@ class VLANGroup(OrganizationalModel):
|
|||||||
null=True
|
null=True
|
||||||
)
|
)
|
||||||
_total_vlan_ids = models.PositiveBigIntegerField(
|
_total_vlan_ids = models.PositiveBigIntegerField(
|
||||||
default=0
|
default=VLAN_VID_MAX - VLAN_VID_MIN + 1
|
||||||
)
|
)
|
||||||
|
|
||||||
objects = VLANGroupQuerySet.as_manager()
|
objects = VLANGroupQuerySet.as_manager()
|
||||||
|
Loading…
Reference in New Issue
Block a user