I have a form, using which user can submit a post. For example post (model Post) have title, text and list of tags. Tags (model Tag) are stored in a different table and saved to database using another model.
When user submits a form it goes through validation process, but I can't save tags for the post before post itself becomes validated and saved to database.
How do I resolve this issue, so list of tags are saved when user submits a post?
When user submits a form it goes through validation process, but I can't save tags for the post before post itself becomes validated and saved to database.
How do I resolve this issue, so list of tags are saved when user submits a post?