parameters: (self, commit=True, **kwargs)
return_statement: return commit and self.save() or self
docstring: Update specific fields of a record.
docstring_summary: Update specific fields of a record.
docstring_tokens: Update specific fields of a record .
function: def update(self, commit=True, **kwargs):
          """Update specific fields of a record."""
          for attr, value in kwargs.items():
              setattr(self, attr, value)
          return commit and self.save() or self
function_tokens: def update ( self , commit = True , * * kwargs ) : for attr , value in kwargs . items ( ) : setattr ( self , attr , value ) return commit and self . save ( ) or self