Fix #11015 removing kbps from speed descriptions

This commit is contained in:
Renato Almeida de Oliveira 2022-12-21 23:55:51 +00:00
parent 3675ad2539
commit 4c44a16ad1

View File

@ -31,8 +31,7 @@ class CircuitType(OrganizationalModel):
class Circuit(PrimaryModel): class Circuit(PrimaryModel):
""" """
A communications circuit connects two points. Each Circuit belongs to a Provider; Providers may have multiple A communications circuit connects two points. Each Circuit belongs to a Provider; Providers may have multiple
circuits. Each circuit is also assigned a CircuitType and a Site. Circuit port speed and commit rate are measured circuits. Each circuit is also assigned a CircuitType and a Site.
in Kbps.
""" """
cid = models.CharField( cid = models.CharField(
max_length=100, max_length=100,
@ -73,7 +72,7 @@ class Circuit(PrimaryModel):
commit_rate = models.PositiveIntegerField( commit_rate = models.PositiveIntegerField(
blank=True, blank=True,
null=True, null=True,
verbose_name='Commit rate (Kbps)') verbose_name='Commit rate')
# Generic relations # Generic relations
contacts = GenericRelation( contacts = GenericRelation(
@ -161,14 +160,14 @@ class CircuitTermination(
null=True null=True
) )
port_speed = models.PositiveIntegerField( port_speed = models.PositiveIntegerField(
verbose_name='Port speed (Kbps)', verbose_name='Port speed',
blank=True, blank=True,
null=True null=True
) )
upstream_speed = models.PositiveIntegerField( upstream_speed = models.PositiveIntegerField(
blank=True, blank=True,
null=True, null=True,
verbose_name='Upstream speed (Kbps)', verbose_name='Upstream speed',
help_text=_('Upstream speed, if different from port speed') help_text=_('Upstream speed, if different from port speed')
) )
xconnect_id = models.CharField( xconnect_id = models.CharField(