title: Django: modify model’s field before save
body: <p>I have a model, <em>course</em>, with an <code>ImageField</code> and <code>FileField</code> so I’d like to create a folder each time the user create a course. I think I can do this before the model is saved so here is my question.</p>
  <p>How can I access a model’s fields in a method?</p>
  <p><strong>Models.py</strong></p>
  <pre><code>Class Course(models.Model):
   Thumbnail = model.ImageField(upload_to=“...”,...)
  
      def save(self, *args, **kwargd):
          ... #How can I alter here the ImageField parameters?
          super().save(*args, **kwargs)
  </code></pre>