title: request.user in Django model
body: <p>I am using Django models to create the fields for a form. I would like to have the user's username automatically detected in and be filled out, this way I can hide it in my form (instead of having them choose their username from a long list that has everyones username). To do this I am using:</p>
  
  <pre><code>current_user = request.user
  </code></pre>
  
  <p>and then setting the default to current_user. However, I keep getting this error:</p>
  
  <pre><code>NameError: name 'request' is not defined
  </code></pre>
  
  <p>I'm assuming you can't use requests in Django models, but is there anyway to get around this? Here is the relevant sections of my models.py file:</p>
  
  <pre><code>class StockTickerSymbol(models.Model):
      StockName = models.CharField(max_length=7, unique=True)
      current_user = request.user
      user = models.ForeignKey(User, default=current_user)
  </code></pre>
  
  <p>Anyone know how I can use requests in my models, or somehow call the variable current_user?</p>