Procházet zdrojové kódy

Tweak passing of tags

Jeremy Stretch před 5 roky
rodič
revize
5629124755
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      netbox/extras/tests/test_changelog.py

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

@@ -36,7 +36,7 @@ class ChangeLogViewTest(ModelViewTestCase):
             'slug': 'test-site-1',
             'status': SiteStatusChoices.STATUS_ACTIVE,
             'cf_my_field': 'ABC',
-            'tags': [tag.pk for tag in tags],
+            'tags': list(tags),
         }
 
         request = {
@@ -69,7 +69,7 @@ class ChangeLogViewTest(ModelViewTestCase):
             'slug': 'test-site-x',
             'status': SiteStatusChoices.STATUS_PLANNED,
             'cf_my_field': 'DEF',
-            'tags': [tag3.pk],
+            'tags': [tag3],
         }
 
         request = {