|
@@ -171,9 +171,9 @@ class CloudStorageView(View):
|
|
mold = request_dict.get('mold', None)
|
|
mold = request_dict.get('mold', None)
|
|
qs = Store_Meal.objects
|
|
qs = Store_Meal.objects
|
|
if mold:
|
|
if mold:
|
|
- qs = qs.filter(bucket__mold=1)
|
|
|
|
|
|
+ qs = qs.filter(bucket__mold=mold)
|
|
else:
|
|
else:
|
|
- qs = qs.filter(bucket__mold=0)
|
|
|
|
|
|
+ qs = qs.all()
|
|
qs = qs.values("id", "title", "content", "price",
|
|
qs = qs.values("id", "title", "content", "price",
|
|
"day", "currency", "bucket__storeDay",
|
|
"day", "currency", "bucket__storeDay",
|
|
"bucket__bucket", "bucket__area", "type",
|
|
"bucket__bucket", "bucket__area", "type",
|