mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 13:17:50 +02:00
Fix get_data method signatore in portal views.py
This commit is contained in:
@@ -472,7 +472,7 @@ class Manufacturers(GetData):
|
|||||||
title = "Manufacturers"
|
title = "Manufacturers"
|
||||||
item_type = "manufacturer"
|
item_type = "manufacturer"
|
||||||
|
|
||||||
def get_data(self):
|
def get_data(self, request):
|
||||||
return Manufacturer.objects.filter(self.filter)
|
return Manufacturer.objects.filter(self.filter)
|
||||||
|
|
||||||
# overload get method to filter by category
|
# overload get method to filter by category
|
||||||
@@ -488,7 +488,7 @@ class Companies(GetData):
|
|||||||
title = "Companies"
|
title = "Companies"
|
||||||
item_type = "company"
|
item_type = "company"
|
||||||
|
|
||||||
def get_data(self):
|
def get_data(self, request):
|
||||||
return Company.objects.all()
|
return Company.objects.all()
|
||||||
|
|
||||||
|
|
||||||
@@ -497,7 +497,7 @@ class Scales(GetData):
|
|||||||
item_type = "scale"
|
item_type = "scale"
|
||||||
queryset = Scale.objects.all()
|
queryset = Scale.objects.all()
|
||||||
|
|
||||||
def get_data(self):
|
def get_data(self, request):
|
||||||
return Scale.objects.all()
|
return Scale.objects.all()
|
||||||
|
|
||||||
|
|
||||||
@@ -505,7 +505,7 @@ class Types(GetData):
|
|||||||
title = "Types"
|
title = "Types"
|
||||||
item_type = "rolling_stock_type"
|
item_type = "rolling_stock_type"
|
||||||
|
|
||||||
def get_data(self):
|
def get_data(self, request):
|
||||||
return RollingStockType.objects.all()
|
return RollingStockType.objects.all()
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
from ram.utils import git_suffix
|
from ram.utils import git_suffix
|
||||||
|
|
||||||
__version__ = "0.13.1"
|
__version__ = "0.13.2"
|
||||||
__version__ += git_suffix(__file__)
|
__version__ += git_suffix(__file__)
|
||||||
|
Reference in New Issue
Block a user