title: access to foreign key fields with fields name
body: <p>I need access to foreign key fields with string fields name:
  for example:
  In a def in Document model , I need access to customer__customer_name [<strong>customer model</strong> -&gt; <strong>customer_name field</strong>]</p>
  <p>Mycode:</p>
  <pre><code>class Customer(LaundryModel, models.Model):
      customer_code = models.CharField(max_length=100, unique=True)
      customer_name = models.CharField(max_length=100)
  
  
  class Document(LaundryModel,models.Model):
      document_number = models.IntegerField(unique=True)
      date = models.DateTimeField(auto_now_add=True)
      customer = models.ForeignKey(&quot;customer.customer&quot;, on_delete=models.PROTECT,
                                   related_name='+')
  
      json_fields=[&quot;customer__customer_name&quot;, &quot;customer__customer_code&quot;]
      
      def send_email(self):
          ###### in this place Need access to customer_name and customer_name from customer foreign key  ######
  </code></pre>
  <p>I try to this with getattr or values or another but not working</p>