title: Doesn't show pizzas' names on pizzas.html under many-to-one relationship [Python Crash Course exercises 18-8]
body: <p>I wanted to follow the methodology in Python Crash Course Ch. 18 on building the <code>learning_logs</code> app to build the <code>pizzas</code> app. However I'm stuck at displaying the pizzas' name in <code>pizzas.html</code>.</p>
  
  <p>There should be 2 pizzas, named "Hawaiian" and "Meat Lovers". I added both using the admin account. Checked through the shell that both are stored in <code>Pizza.objects.all()</code> so I guess it's the problem to recall them.</p>
  
  <hr>
  
  <p>Some codes for you all's reference:</p>
  
  <p>views.py:</p>
  
  <pre class="lang-py prettyprint-override"><code>from django.shortcuts import render
  
  from .models import Pizza
  
  # Create your views here.
  
  def index(request):
  
      """ The home page for Pizzeria. """
  
      return render(request, "pizzas/index.html")
  
  def pizzas(request):
  
      """ Show all pizzas available. """
  
      pizzas = Pizza.objects.all()
      content = {"pizza": pizzas}
      return render(request, "pizzas/pizzas.html", content)
  
  </code></pre>
  
  <p>models.py</p>
  
  <pre class="lang-py prettyprint-override"><code>from django.db import models
  
  # Create your models here.
  
  class Pizza(models.Model):
  
      """ Pizza available. """
      name = models.CharField(max_length = 50)
  
      def __str__(self):
  
          """ Return a string representation of the pizza name. """
          return self.name
  
  class Topping(models.Model):
  
      """ The toppoings on the pizza. """
  
      pizza = models.ForeignKey(Pizza, on_delete = models.CASCADE)
      text = models.CharField(max_length = 250, unique = True)
  
      def __str__(self):
  
          """ Return a string representation of the toppings. """
          return self.text
  </code></pre>
  
  <p>urls.py:</p>
  
  <pre class="lang-py prettyprint-override"><code>from django.urls import path, include
  from . import views
  
  app_name = "pizzas"
  
  urlpatterns = [
      # Home page
      path("", views.index, name = "index"),
  
      # Show all pizzas.
      path("pizzas/", views.pizzas, name = "pizzas"),
  ]
  </code></pre>
  
  <p>pizzas.html:</p>
  
  <pre class="lang-html prettyprint-override"><code>{% extends 'pizzas/base.html' %}
  
  {% block content %}
      &lt;p&gt;Pizzas&lt;/p&gt;
      &lt;ul&gt;
          {% for pizza in pizzas %}
              &lt;li&gt;{{ pizza }}&lt;/li&gt;
          {% empty %}
              &lt;li&gt;No pizza duh.&lt;/li&gt;
          {% endfor %}
      &lt;/ul&gt;
  
  {% endblock content %}
  </code></pre>
  
  <hr>
  
  <p>Expected to see both "Hawaiian" and "Meat Lovers" appears in the list under "Pizzas" in localhost:8000/pizzas.html but instead shows "no pizza duh". What do I miss?</p>
  
  <p>I did see changing the relationship to both models would help solve the problem but if I don't, how can I change the other parts to get what I expect?</p>