title: How to clone a SQLAlchemy object with new primary key
body: <p>I want to clone a SQLAlchemy object:</p>
  <p>I tried:</p>
  <pre><code>product_obj = products.all()[0] #here products is service name
  
  product_obj.product_uid = 'soemthing' #here product_uid is the pk of product model
  
  products.save(product_obj)
  </code></pre>
  <p>but it just updates the old object.</p>
  <p>Here is the code of <code>products.save</code> function:</p>
  <pre><code>class Service(object):
  
          __model__ = None
  
         def save(self, model):
              self._isinstance(model)
              db.session.add(model)
              db.session.commit()
              return model
  </code></pre>