add max values
This commit is contained in:
parent
ad60692604
commit
323371daf4
|
@ -78,9 +78,9 @@ class ApartmentFilter(viewsets.ViewSet):
|
|||
|
||||
# TODO: Some better converting practice?
|
||||
filters['price_range']['from'] = int('0' if filters['price_range']['from'] == '' else filters['price_range']['from']);
|
||||
filters['price_range']['to'] = int('0' if filters['price_range']['to'] == '' else filters['price_range']['to']);
|
||||
filters['price_range']['to'] = int('100000000' if filters['price_range']['to'] == '' else filters['price_range']['to']);
|
||||
filters['area_range']['from'] = int('0' if filters['area_range']['from'] == '' else filters['area_range']['from']);
|
||||
filters['area_range']['to'] = int('0' if filters['area_range']['to'] == '' else filters['price_range']['to']);
|
||||
filters['area_range']['to'] = int('100000000' if filters['area_range']['to'] == '' else filters['price_range']['to']);
|
||||
filters['rooms'] = int(filters['rooms'])
|
||||
|
||||
for entry in unfiltered:
|
||||
|
|
Loading…
Reference in New Issue