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.
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.