I understand the role of Managers
in Django when listing or filtering data. However, when it comes to saving data on the model I often see the following two ways used...
Using a Manager:
class Project(TimeStampedModel):
stuff
def save(self, **kwargs):
Action.objects.log_action(user=self.user,comment="Saves a project")
Not using a Manager:
class Project(TimeStampedModel):
stuff
def save(self, **kwargs):
action = Action(user=self.user,comment="Saves a project")
action.save
So my question is, given the scenario above which is correct?