def _new(self, name, deadline, project = None): nextaction = Action( name = name, deadline = deadline, project = project) nextaction.save() return nextaction
def _new(self, name, deadline, project=None): nextaction = Action(name=name, deadline=deadline, project=project) nextaction.save() return nextaction
def _add(self, options): action = Action(**options) action.save()