mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-08 16:48: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):
|
||||
return string_to_range_array(data)
|
||||
|
||||
|
@ -40,7 +40,7 @@ class Migration(migrations.Migration):
|
||||
migrations.AddField(
|
||||
model_name='vlangroup',
|
||||
name='_total_vlan_ids',
|
||||
field=models.PositiveBigIntegerField(default=0),
|
||||
field=models.PositiveBigIntegerField(default=4094),
|
||||
),
|
||||
migrations.RunPython(
|
||||
code=move_min_max,
|
||||
|
@ -61,7 +61,7 @@ class VLANGroup(OrganizationalModel):
|
||||
null=True
|
||||
)
|
||||
_total_vlan_ids = models.PositiveBigIntegerField(
|
||||
default=0
|
||||
default=VLAN_VID_MAX - VLAN_VID_MIN + 1
|
||||
)
|
||||
|
||||
objects = VLANGroupQuerySet.as_manager()
|
||||
|
Loading…
Reference in New Issue
Block a user