Re: import different entries using filter

2017-06-21 Thread Derek
Your clue is in the word "variable" that you used. The "variables" for a Django model are its fields; so what you are looking for is a value stored in your model's field. e.g. service = food.objects.get(restaurant-name__icontains='burger-place').values_list('type_of_service', flat=True) T

Re: import different entries using filter

2017-06-20 Thread Melvyn Sopacua
On Monday 19 June 2017 21:11:23 jon stan wrote: > im trying to display the products and service type based on the name > but i cant figure out how todo that. here's what i have: > > views.py > name = > food.objects.get(restaurant-name__icontains='burger-place') prod = > food.object

import different entries using filter

2017-06-19 Thread jon stan
hey im trying to import one set of info from a database based on the name of something else if that makes sense. basically in the database its setup like this: food- restaurant-name products type of service