Procházet zdrojové kódy

14346 fix missing function call convert

In PR #13958 (commit 8224644) _get_report was modified to do the call on the variable without changing the call later on.

This commit fixes that and removes the call on the variable.

Signed-off-by: Josef Johansson <josef@oderland.se>
Josef Johansson před 2 roky
rodič
revize
c43c63a817
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      netbox/extras/api/views.py

+ 1 - 1
netbox/extras/api/views.py

@@ -283,7 +283,7 @@ class ReportViewSet(ViewSet):
 
 
         # Retrieve and run the Report. This will create a new Job.
         # Retrieve and run the Report. This will create a new Job.
         module, report_cls = self._get_report(pk)
         module, report_cls = self._get_report(pk)
-        report = report_cls()
+        report = report_cls
         input_serializer = serializers.ReportInputSerializer(
         input_serializer = serializers.ReportInputSerializer(
             data=request.data,
             data=request.data,
             context={'report': report}
             context={'report': report}