I'm trying to clear all the data of a certain field within a model for all of the objects. Something like this:
#models.py
class A(models.Model):
someProperty = models.ManyToManyField(SomeModel)
#views.py
object = A.objects.all()
object.someProperty.all().clear()
I understand this is probably simple but I have been looking through the django documentation and haven't been able to find a good way to do this. Any help is greatly appreciated :)