Computer scienceBackendDjangoAdvanced QuerySet usage

Q object

SQL Debug

Report a typo

You must choose a new tour to book. To make everything smooth, you created a filter and checked the SQL query.

new_vacation = Tour.objects.filter(ocean='Pacific Ocean', price__gte=1600)

print(str(new_vacation.query))

What will the print function show?

Hint: SELECT * FROM tours WHERE ...

Write an SQL statement





___

Create a free account to access the full topic