0
Guys I’m having doubts in the reportlab.
Python 3 Application / Django
I have a model Pessoa
that contains a field data de nascimento
who’s kind DateTimeField
.
I’m trying to write the date of birth in the PDF but the error.
Remembering that the date comes from the database.
Other fields like Name, city, address, etc are writing in PDF correctly.
p = Pessoa.objects.get(pk=pk)
c.drawString(200, 630, p.data_nascimento)
I’m using the Reportlab (http://www.reportlab.com/)
About the second problem, it has more to do with the client’s browser, or something in Javascript. But it will not be done through the backend.
– Marcelo Theodoro