change usr repr
This commit is contained in:
parent
816c1d697e
commit
57c0e317cc
1 changed files with 1 additions and 3 deletions
|
|
@ -14,13 +14,11 @@ class User(db.Model, UserMixin):
|
|||
email = Column('email', TEXT(), nullable=False, unique=True)
|
||||
password = Column('password', TEXT(), nullable=False)
|
||||
user_type = Column('user_type', TEXT(), nullable=False)
|
||||
|
||||
# donations = db.relationship('Donation', backref='user', lazy='dynamic')
|
||||
|
||||
|
||||
|
||||
def __repr__(self) -> str:
|
||||
return f"{self.id} - {self.first_name} - {self.last_name}"
|
||||
return f"{self.first_name} {self.last_name}"
|
||||
# donation_id = Column(INTEGER, ForeignKey('donation.id'))
|
||||
|
||||
def get_reset_token(self, expiration=600):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue