Capitalize language selection in User settings

Remove sql statement from log.debug statement upon creation of new column in settings database
This commit is contained in:
Ozzieisaacs 2020-01-05 14:07:26 +01:00
parent 6a07cfba65
commit c60277f4d3
2 changed files with 2 additions and 2 deletions

View File

@ -276,7 +276,7 @@ def _migrate_table(session, orm_class):
try:
session.query(column).first()
except exc.OperationalError as err:
log.debug("%s: %s", column_name, err)
log.debug("%s: %s", column_name, err.args[0])
if column.default is not None:
if sys.version_info < (3, 0):
if isinstance(column.default.arg,unicode):

View File

@ -30,7 +30,7 @@
<label for="locale">{{_('Language')}}</label>
<select name="locale" id="locale" class="form-control">
{% for translation in translations %}
<option value="{{translation}}" {% if translation|string == content.locale %}selected{% endif %} {% if new_user == 1 and loop.first %}selected{% endif %}>{{ translation.display_name }}</option>
<option value="{{translation}}" {% if translation|string == content.locale %}selected{% endif %} {% if new_user == 1 and loop.first %}selected{% endif %}>{{ translation.display_name|capitalize }}</option>
{% endfor %}
</select>
</div>