title: Issues getting all users from my django models
body: <p>I am trying to get all the user from my database to display all the username, goals and goals id using the related name, but I can't seem to do that.</p>
  
  <p>model</p>
  
  <pre><code>class GoalStatus(models.Model):
      status_name = models.CharField(max_length=60)
  
      def __str__(self):
          return self.status_name
  
  
  
  class ScrumyGoals(models.Model):
      goal_status = models.ForeignKey(GoalStatus, on_delete=models.PROTECT, related_name='goalstatus')
      user = models.ForeignKey(User, related_name='scrumygoals', on_delete=models.PROTECT)
      goal_name = models.CharField(max_length=60)
      goal_id = models.IntegerField()
      created_by = models.CharField(max_length=60)
      moved_by = models.CharField(max_length=60)
      owner = models.CharField(max_length=60)
  </code></pre>
  
  <p>view</p>
  
  <pre><code>def home(request):
      user = User.objects.all()
    #  User1 = ScrumyGoals.objects.filter(goal_name='Learn Django')
  
  
      context = {'User': User}
      return render(request, 'django/home.html', context)
  </code></pre>
  
  <p>template</p>
  
  <pre><code>{% for g in User.scrumygoals_set.all %}
          &lt;td&gt;g.User.User&lt;/td&gt;&gt;
          &lt;td&gt;g.goal_name&lt;/td&gt;&gt;
          &lt;td&gt;g.goal_id&lt;/td&gt;&gt;
  
  
      {% endfor %}
  </code></pre>
  
  <p>the output is supposed to look like this</p>
  
  <pre><code>User      Weekly Goals     Daily Goals     Verify Goals    Done Goals
  username    Goalname Goalid Goalname Goalid
  </code></pre>