mirror of
https://github.com/netbox-community/netbox.git
synced 2026-04-28 11:47:35 +02:00
Remove get_absolute_url methods
This commit is contained in:
@@ -297,9 +297,6 @@ class VLANTranslationPolicy(PrimaryModel):
|
|||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.name
|
return self.name
|
||||||
|
|
||||||
def get_absolute_url(self):
|
|
||||||
return reverse('ipam:vlantranslationpolicy', args=[self.pk])
|
|
||||||
|
|
||||||
|
|
||||||
class VLANTranslationRule(NetBoxModel):
|
class VLANTranslationRule(NetBoxModel):
|
||||||
policy = models.ForeignKey(
|
policy = models.ForeignKey(
|
||||||
@@ -327,6 +324,3 @@ class VLANTranslationRule(NetBoxModel):
|
|||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return f'{self.local_vid} -> {self.remote_vid} ({self.policy})'
|
return f'{self.local_vid} -> {self.remote_vid} ({self.policy})'
|
||||||
|
|
||||||
def get_absolute_url(self):
|
|
||||||
return reverse('ipam:vlantranslationrule', args=[self.pk])
|
|
||||||
|
|||||||
Reference in New Issue
Block a user