Dynamic self-referencing "upload_to" folder on ImageField
<p>I have a model such as this:</p>

<pre><code>class MyModel(models.Model):
    red = models.ForeignKey(Anothermodel)
    blue = models.ImageField(upload_to='folder')
</code></pre>

<p>Would it be possible for 'folder' to be set to the value of field 'red'?</p>

<p>My purpose is that when a user uploads an image, it is automatically stored on a folder that has some field from that very same model as its name.</p>

<p>Thank you in advance.</p>