I want to upload photos to different directories. The directory name should have a title from a model class field. I tried this:
image = models.ImageField(upload_to=f"image/posts/{title}")
It created this:

I wanted to see the post's title where I get <django.db.models.fields.CharField>.
How can I get the text from this field. To set the text, I used the Django admin panel.
models.py
class Post(models.Model):
    # ...
    title = models.CharField(max_length=250)
    image = models.ImageField(upload_to=f"image/posts/{title}")
For clarification: In my image field, I set the upload address. This address is different for every post. One directory per post. The directory name should be the value of the title field.

