1
0
mirror of https://github.com/Mailu/Mailu.git synced 2024-12-12 10:45:38 +02:00

Prefill alias forms

This commit is contained in:
Pierre Jaury 2016-03-20 11:39:04 +01:00
parent 8fb2e58661
commit c52cf53310

View File

@ -42,7 +42,7 @@ def alias_create(domain_name):
@flask_login.login_required
def alias_edit(alias):
alias = utils.get_alias(alias)
form = forms.AliasEditForm()
form = forms.AliasEditForm(obj=alias)
if form.validate_on_submit():
alias.destination = form.destination.data
alias.comment = form.comment.data