Skip to content

Commit 40ce6aa

Browse files
committed
Remove .json() from user model.
1 parent 0b8d1a4 commit 40ce6aa

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

section11/models/user.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ def __init__(self, username, password):
1212
self.username = username
1313
self.password = password
1414

15-
def json(self):
16-
return {
17-
'id': self.id,
18-
'username': self.username
19-
}
20-
2115
def save_to_db(self):
2216
db.session.add(self)
2317
db.session.commit()

0 commit comments

Comments
 (0)