title: flask Sqlalchemy One to Many getting parent attributes
body: <p>Im trying to get the Pet owner or persons name</p>
  
  <pre><code>class Person(db.Model):
          id = db.Column(db.Integer, primary_key=True)
          name = db.Column(db.String(20))
          pets = db.relationship('Pet', backref='owner', lazy='dynamic')
  
  
  class Pet(db.Model):
      id = db.Column(db.Integer, primary_key=True)
      name = db.Column(db.String(20))
      owner_id = db.Column(db.Integer, db.ForeignKey('person.id'))
  </code></pre>
  
  <p>I want to query the pets and after i select a pet i want to get pet owner names</p>
  
  <pre><code>pets = Pet.query.all()
  for pet in pets:
      print pet.owner_id 
  </code></pre>
  
  <p>will give the owner id but i want to owner name</p>