I want to group all uploaded Resumes under the job they were applied

Then you want to create a ForeignKey field in the Application model referring to the Post model.

See the docs for upload_to. Instead of a path, you can supply a callable that identifies the destination at runtime.

1 Like