-
Notifications
You must be signed in to change notification settings - Fork 0
/
todo.txt
33 lines (21 loc) · 825 Bytes
/
todo.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
TODO:
BUG THERE: fix the fucking bug: if you delete a user, it crashes for (no_user_found)
- "deleted" items are just "disabled"
- maybe image upload for posts
- Check that the password hashification works
- check for a unique title / slug (otherwise error.)
- check for form injections
- Change the password (or send a reset request via email)
- fix the front page previews not showing markdown (bugi vai feature?)
- remove the bigger uploaded image after conversion (?)
- favicon
- add CSRF tokens (https://flask-wtf.readthedocs.org/en/latest/csrf.html#ajax)
---
from app import db, models
u = models.User.query.filter_by(username="Bembu")
t = Tag(name="python")
p = models.Post.query.filter_by(user_id = u.id)
p.tags.append(t)
db.session.commit()
###
models.Post.query.filter(models.Tag.name=="python")).all()