title: Make models belong to users in django
body: <p>I am using django.contrib.auth and I am wondering how I can make an instance of a model "belong to" a particular user. Do I need to define a foreign key in the model that points to the user? I want users to keep their CRUD to themselves.</p>
  
  <pre><code># The objects created from this model should belong 
  # to the user who created them and should not be 
  # viewable by other users of the website.
  
  from django.contrib.auth.models import User
  
  class Classroom(models.Model):
      user = models.ForeignKey(User)
      name = models.CharField(max_length=30)
      def __unicode__ (self):
          return self.name
  </code></pre>
  
  <p>Thanks.</p>