fixed a bug where every class would say it was a Titelbild
This commit is contained in:
parent
dd1fedaba9
commit
6c17b95ac2
@ -17,7 +17,7 @@ db.Model._asdict = _asdict
|
||||
|
||||
# override repr() method from sqlalchemy.orm.decl_api.Model
|
||||
def __repr__(self):
|
||||
return f"Titelbild({str(self._asdict())})"
|
||||
return f"{type(self).__name__}({str(self._asdict())})"
|
||||
db.Model.__repr__ = __repr__
|
||||
|
||||
class Text(db.Model):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user