title: Is it possible to modify Pydantic BaseModel attributes just after creating it?
body: <p>I am starting to learn FastAPI and Pydantic and have a doubt. I have the following subclass of BaseModel</p>
  <pre class="lang-py prettyprint-override"><code>class Product(BaseModel):
    image: str
    name: str
  </code></pre>
  <p>After saving this model, I want <code>image</code> to store the value <code>/static/</code> + <code>image</code> so as to create nice hyperlinked REST endpoint. This is possible using <code>__post_init_post_parse__</code> hook of pydantic dataclass but since FastAPI currently doesn't support it, I was wondering what can be a workaround this.</p>