change usr repr
This commit is contained in:
parent
816c1d697e
commit
57c0e317cc
1 changed files with 1 additions and 3 deletions
|
|
@ -15,12 +15,10 @@ class User(db.Model, UserMixin):
|
||||||
password = Column('password', TEXT(), nullable=False)
|
password = Column('password', TEXT(), nullable=False)
|
||||||
user_type = Column('user_type', TEXT(), nullable=False)
|
user_type = Column('user_type', TEXT(), nullable=False)
|
||||||
|
|
||||||
# donations = db.relationship('Donation', backref='user', lazy='dynamic')
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
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'))
|
# donation_id = Column(INTEGER, ForeignKey('donation.id'))
|
||||||
|
|
||||||
def get_reset_token(self, expiration=600):
|
def get_reset_token(self, expiration=600):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue