title: Django add field to auth_user
body: <p>I am trying to implement the above to add a field 'posts' to the user model using the first option, extended it.</p>
  
  <p>models.py</p>
  
  <pre><code>   from django.contrib.auth.models import User
  
      class NewUserModel(models.Model):
          user = models.OneToOneField(User, on_delete=models.CASCADE)
          posts = models.IntegerField(default=0)
  </code></pre>
  
  <p>views.py</p>
  
  <pre><code>def site_users(request):
      site_users = User.objects.all().reverse()
      paginator = Paginator(site_users, 10)
      page = request.GET.get('page')
      try:
          users_model = paginator.page(page)
      except PageNotAnInteger:
          # If page is not an integer, deliver first page.
          users_model = paginator.page(1)
      except EmptyPage:
          # If page is out of range (e.g. 9999), deliver last page of results.
          users_model = paginator.page(paginator.num_pages)
  
  return render(request, 'site_users.html', {'users_model': users_model, 'current_time':   timezone.now()})
  </code></pre>
  
  <p>But how can I get the posts field in the template, (updated, corrected and working!)</p>
  
  <pre><code>{% for item in users_model %}
          &lt;tr&gt;
            &lt;td&gt;&lt;a href="{% url 'profile' item.id %}"&gt;{{ item.username }}&lt;/a&gt;&lt;/td&gt;
            &lt;td&gt;{{ item.newusermodel.posts }}&lt;/td&gt;
            &lt;td&gt;&lt;/td&gt;
            &lt;td&gt;&lt;/td&gt;
          &lt;/tr&gt;
          {% endfor %}
  </code></pre>
  
  <p>The tables in the sqlite3 DB have no User model, but it does have auth_user. Should i be using that instead of User?</p>
  
  <p><a href="https://i.stack.imgur.com/13DPF.png" rel="nofollow"><img src="https://i.stack.imgur.com/13DPF.png" alt="enter image description here"></a></p>
  
  <p>Thanks,</p>