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
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
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
3 matches
Mail list logo