Przeglądaj źródła

fix(dcim): Correct URL parameter for Device filter in Location view (#23488)

Updates the Device filter URL parameter from 'parent' to 'location' to
match the current field name in the Device model.

Fixes #23484
Martin Hauser 2 dni temu
rodzic
commit
237bff51de
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      netbox/dcim/views.py

+ 1 - 1
netbox/dcim/views.py

@@ -729,7 +729,7 @@ class LocationView(GetRelatedModelsMixin, generic.ObjectView):
                         'dcim.Device',
                         url_params={
                             'site': lambda ctx: ctx['object'].site_id,
-                            'parent': lambda ctx: ctx['object'].pk,
+                            'location': lambda ctx: ctx['object'].pk,
                         }
                     ),
                 ],