Answer the question
In order to leave comments, you need to log in
How can I change the upload_to of a FileField to link each file to a separate folder with a ForignKey field name?
In general, a model has a FileField field and a ForignKey field. It is necessary that the files from the FileField are loaded into a folder with the name of the object from the ForignKey. How can this be done?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question