Answer the question
In order to leave comments, you need to log in
How to properly work/delete with a model that is related to many other models?
Let's say there are about 20 - 30 models in the project, and all of them are connected via Fk or ManyToMany with the File model .
file model:
class File(models.Model):
file = models.FileField(upload_to=upload_name)
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