Re: Create navbar dropdown menu list with url tags
Drop down menu still not showing... Forgot to say navbar.html is inherited in base.html. I created a view .def navbar(request): airlines= Airline.objects.all() template = 'navbar.html' context = { 'airlines': airlines, } return render(request, templa
Create navbar dropdown menu list with url tags
Hi, I have a model and whould like to create a dropdown menu from the fields generated. Unfortunately no dropdown list is showed: {% for airline in alirlines %} {{ airline.airline }} {% endfor %} this is the model: