title: Django model: Filtering by user, always
body: <p>How do I achieve the following....</p>
  
  <p>Every time the points object is displayed in a template it must always be filtered by the current user. So, within the model I tried the code below.</p>
  
  <p>Is this possible? how can I achieve the above?</p>
  
  <p>Models.py</p>
  
  <pre><code>from django.db import models
  from django.contrib.auth.models import User
  
  
  POINTS_PENDING, POINTS_ADDED, POINTS_DEDUCTED, ORDER_PROCESSING = range(4)
  STATUS_OPTIONS = (
      (POINTS_PENDING, ('Pending')),
      (POINTS_ADDED, ('Added')),
      (POINTS_DEDUCTED, ('Deducted')),
      (ORDER_PROCESSING, ('Processing')),
      )
  
  
  class PointsManager(models.Manager):
  
      def points_list(self,User):
          list = Points.objects.filter(points_user=User).exclude(status=ORDER_PROCESSING)
          return list
  
  
  class Points (models.Model):
      user = models.ForeignKey(User)
      points = models.IntegerField(verbose_name=("Points"), default=0)
      created = models.DateTimeField(("Created at"), auto_now_add=True)
      updated = models.DateTimeField(verbose_name=("Updated at"), auto_now=True)
  
      objects = PointsManager()
  </code></pre>