|
|
@ -4,7 +4,7 @@ from flask_login import current_user, login_required
|
|
|
|
from yadc.forms import ChangeUserInfoForm, ChangePassForm, ChangeMailForm, ChangeUserRatingForm, ChangeTagBlacklistForm, DeleteUserDataForm
|
|
|
|
from yadc.forms import ChangeUserInfoForm, ChangePassForm, ChangeMailForm, ChangeUserRatingForm, ChangeTagBlacklistForm, DeleteUserDataForm
|
|
|
|
|
|
|
|
|
|
|
|
from yadc import db
|
|
|
|
from yadc import db
|
|
|
|
from yadc.models import User, Post, Comment
|
|
|
|
from yadc.models import User, Post, Comment, Tag
|
|
|
|
from yadc.utils import flasherrors
|
|
|
|
from yadc.utils import flasherrors
|
|
|
|
|
|
|
|
|
|
|
|
bp = Blueprint('user', __name__)
|
|
|
|
bp = Blueprint('user', __name__)
|
|
|
@ -23,7 +23,7 @@ def settings():
|
|
|
|
pass_form=ChangePassForm(),
|
|
|
|
pass_form=ChangePassForm(),
|
|
|
|
mail_form=ChangeMailForm(),
|
|
|
|
mail_form=ChangeMailForm(),
|
|
|
|
rating_form=ChangeUserRatingForm(rating=current_user.rating.name),
|
|
|
|
rating_form=ChangeUserRatingForm(rating=current_user.rating.name),
|
|
|
|
tags_form=ChangeTagBlacklistForm(),
|
|
|
|
tags_form=ChangeTagBlacklistForm(tags=' '.join(t.content for t in current_user.tag_blacklist)),
|
|
|
|
delete_form=DeleteUserDataForm()
|
|
|
|
delete_form=DeleteUserDataForm()
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|