Merge pull request #587 from dod-ccpo/date-field-component-fixes

Bug fixes for date picker component
This commit is contained in:
George Drummond
2019-02-01 13:20:52 -05:00
committed by GitHub
4 changed files with 61 additions and 20 deletions

View File

@@ -38,4 +38,11 @@ def update_user():
if next_url:
return redirect(next_url)
return render_template("user/edit.html", form=form, user=user, next=next_url)
return render_template(
"user/edit.html",
form=form,
user=user,
next=next_url,
mindate=(dt.datetime.now() - dt.timedelta(days=365)),
maxdate=dt.datetime.now(),
)