From 54254bda7dbf428d4f2376384b7a75f67e04997a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniele=20Vigan=C3=B2?= Date: Mon, 4 Nov 2024 15:06:55 +0100 Subject: [PATCH] Fix get_data method signatore in portal views.py --- ram/portal/views.py | 8 ++++---- ram/ram/__init__.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ram/portal/views.py b/ram/portal/views.py index 6ac607f..fbe4ca1 100644 --- a/ram/portal/views.py +++ b/ram/portal/views.py @@ -472,7 +472,7 @@ class Manufacturers(GetData): title = "Manufacturers" item_type = "manufacturer" - def get_data(self): + def get_data(self, request): return Manufacturer.objects.filter(self.filter) # overload get method to filter by category @@ -488,7 +488,7 @@ class Companies(GetData): title = "Companies" item_type = "company" - def get_data(self): + def get_data(self, request): return Company.objects.all() @@ -497,7 +497,7 @@ class Scales(GetData): item_type = "scale" queryset = Scale.objects.all() - def get_data(self): + def get_data(self, request): return Scale.objects.all() @@ -505,7 +505,7 @@ class Types(GetData): title = "Types" item_type = "rolling_stock_type" - def get_data(self): + def get_data(self, request): return RollingStockType.objects.all() diff --git a/ram/ram/__init__.py b/ram/ram/__init__.py index 2ea3cfe..fc31aca 100644 --- a/ram/ram/__init__.py +++ b/ram/ram/__init__.py @@ -1,4 +1,4 @@ from ram.utils import git_suffix -__version__ = "0.13.1" +__version__ = "0.13.2" __version__ += git_suffix(__file__)