title: Django: How to add model class inside class or refer?
body: <p>I have a class called artist which is a profil for an artist</p>
  
  <pre><code>class Artist_object(models.Model):
      surname = models.CharField(max_length=120)
      name = models.CharField(max_length=120)
      Biography = models.TextField(default='Bitte Biography eingfügen', null=False)
  </code></pre>
  
  <p>now I want that this artist can have multiple paintings with a desrciption.</p>
  
  <pre><code>class Artist_painting(models.Model):
      painting1 = models.ImageField()
      painting1_desc = models.CharField(max_length=120, default=None)
      painting2 = models.ImageField()
      painting2_desc = models.CharField(max_length=120, default=None)
  </code></pre>
  
  <p>How can I put class Artist_painting inside the Artist_object that for every artist I view (i got<br>
  <code>def get_absolute_url(self):  return f'/artist/{self.id}'</code>
  ) it have an description for every image ?</p>