mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-25 01:48:38 -06:00
Remove get_absolute_url methods
This commit is contained in:
parent
ef3a611f1f
commit
00e22e3e98
@ -297,9 +297,6 @@ class VLANTranslationPolicy(PrimaryModel):
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
def get_absolute_url(self):
|
||||
return reverse('ipam:vlantranslationpolicy', args=[self.pk])
|
||||
|
||||
|
||||
class VLANTranslationRule(NetBoxModel):
|
||||
policy = models.ForeignKey(
|
||||
@ -327,6 +324,3 @@ class VLANTranslationRule(NetBoxModel):
|
||||
|
||||
def __str__(self):
|
||||
return f'{self.local_vid} -> {self.remote_vid} ({self.policy})'
|
||||
|
||||
def get_absolute_url(self):
|
||||
return reverse('ipam:vlantranslationrule', args=[self.pk])
|
||||
|
Loading…
Reference in New Issue
Block a user