title: How to set a variable from one class equals to a variable in another class in Django models.py?
body: <p>I am a new in Django world and I want to link two classes from models.py so that i can set their variables equal to each other. Here is the models.py code:</p>
  
  <pre><code>from django.db import models
  from django.core.urlresolvers import reverse
  # Create your models here.
  
  
  class file(models.Model):
      title = models.CharField(max_length=250)
      FILE_TYPE_CHOICES = (
          ('audio','Audio'),
          ('games','Games'),
          ('videos','Videos'),
          ('applications','Applications'),
          ('books','Books/Docs'),
          ('others','Others')
          )
      file_type = models.CharField(max_length=10,choices=FILE_TYPE_CHOICES,default='others')
      description = models.TextField(max_length=6000)
      #uploader_username = ???
  
      def get_absolute_url(self):
          return reverse('one:user')
  
      def __str__(self):
          return self.title
  
  class user (models.Model):
      username= models.CharField(max_length=100)
      email=models.EmailField
      password= models.CharField(max_length = 100)
      user_files = models.ForeignKey(file, on_delete=models.CASCADE)
  </code></pre>
  
  <p>Here I want to set <code>uploader_username</code> from <code>file</code> class equals to<code>username</code> from <code>user</code> class.</p>