Commit bb9c584b authored by Willard's avatar Willard

Rename User.name to User.username

parent fcc8a558
...@@ -86,7 +86,7 @@ class Location(db.Model): ...@@ -86,7 +86,7 @@ class Location(db.Model):
class User(db.Model): class User(db.Model):
id = db.Column(db.Integer, primary_key=True) id = db.Column(db.Integer, primary_key=True)
name = db.Column(db.String(80)) username = db.Column(db.String(80))
email = db.Column(db.String(80)) email = db.Column(db.String(80))
password = db.Column(db.String(160)) password = db.Column(db.String(160))
dish_favorites = db.relationship('Dish', secondary=dish_favorites, backref=db.backref('user', lazy='dynamic')) dish_favorites = db.relationship('Dish', secondary=dish_favorites, backref=db.backref('user', lazy='dynamic'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment