jeremystretch 2 лет назад
Родитель
Сommit
13625325f5
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      netbox/extras/tests/test_views.py

+ 2 - 2
netbox/extras/tests/test_views.py

@@ -479,8 +479,8 @@ class CustomLinkTest(TestCase):
     def test_view_object_with_custom_link(self):
     def test_view_object_with_custom_link(self):
         customlink = CustomLink(
         customlink = CustomLink(
             name='Test',
             name='Test',
-            link_text='FOO {{ obj.name }} BAR',
-            link_url='http://example.com/?site={{ obj.slug }}',
+            link_text='FOO {{ object.name }} BAR',
+            link_url='http://example.com/?site={{ object.slug }}',
             new_window=False
             new_window=False
         )
         )
         customlink.save()
         customlink.save()