Hello Everyone, I'm looking to building an Model where it's fields are populated by the contents of a PDF file. I've come to this solution, one I didn't like:
class ContaPdf(models.Model): conta_pdf = models.FileField(upload_to='conta_pdf') class Conta(models.Model) data_inicio = models.DateField() data_fim = models.DateField() data_vencimento = models.DateField() telefone = models.ForeignKey(Telefone) @receiver(pos_save, sender=ContaPdf) def pdf_parser(sender, **kwards): # Parses data from PDF file and create/save Conta object. Is there any easier way to do this, considering I'll be using mostly django.admin as interface? I can't quite see the alternatives. Thanks a lot, Paulo -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/X2j39tDniDgJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

