code: func (dal *DjangoAdminLog) Update(db XODB) error {
  	var err error
  
  	// if doesn't exist, bail
  	if !dal._exists {
  		return errors.New("update failed: does not exist")
  	}
  
  	// if deleted, bail
  	if dal._deleted {
  		return errors.New("update failed: marked for deletion")
  	}
  
  	// sql query
  	const sqlstr = `UPDATE public.django_admin_log SET (` +
  		`action_time, object_id, object_repr, action_flag, change_message, content_type_id, user_id` +
  		`) = ( ` +
  		`$1, $2, $3, $4, $5, $6, $7` +
  		`) WHERE id = $8`
  
  	// run query
  	XOLog(sqlstr, dal.ActionTime, dal.ObjectID, dal.ObjectRepr, dal.ActionFlag, dal.ChangeMessage, dal.ContentTypeID, dal.UserID, dal.ID)
  	_, err = db.Exec(sqlstr, dal.ActionTime, dal.ObjectID, dal.ObjectRepr, dal.ActionFlag, dal.ChangeMessage, dal.ContentTypeID, dal.UserID, dal.ID)
  	return err
  }
docs: // Update updates the DjangoAdminLog in the database.