class Passagem(models.Model):
inscricao = models.ForeignKey(Inscricao, verbose_name='inscricao', related_name='passagem',
on_delete=models.CASCADE)
hora_passagem = models.TimeField('Tempo', auto_now_add=True)
I have this table where I write the hora_passagem
, which is of type TimeField
. When presenting in the web system, it has the following format: "14:35"
.
How do I display it in this format: "14:34:58.943943"
I'm using Django 2.1.