Como posso fazer para que mostre somente dd/mm/yy e tira as horas e segundos no meu banco de dados ou no templates?
Banco de dados:
class User(db.Model):
__tablename__ = 'users'
id = db.Column(db.Integer, primary_key=True)
first_name = db.Column(db.String(120))
last_name = db.Column(db.String(120))
callsing = db.Column(db.String(10), unique=True)
username = db.Column(db.String(120))
ifc = db.Column(db.String(64))
password = db.Column(db.String(120))
email = db.Column(db.String(120), unique=True)
age = db.Column(db.String(5))
grau = db.Column(db.String)
about_me = db.Column(db.Text(140))
last_seen = db.Column(db.DateTime, default=datetime.utcnow)
Template:
{% for f in range(2) %}
<tr>
<td><img src="../static/img/arrow-gray.png" alt="">
<font color="#006400">IFAB {{ form[f].callsing }} </font>
</td>
<td>{{ form[f].first_name }} <b>{{ form[f].last_name }}</b></td>
<td>{{ form[f].last_seen }}</td>
</tr>
{% endfor %}