Commits

Alexander Olivares committed ad5d01c Draft

Fix foreinkey search
Fix serial x position

Comments (0)

Files changed (2)

sofi/apps/certificado/admin.py

 class CertificadoSuscriptorAdmin(admin.ModelAdmin):
     list_display = ('suscriptor', 'key', 'evento','certificado', 'otorgar',)
     list_filter = ('certificado',)
-    search_fields = ('^suscriptor__nombres', '^suscriptor__apellidos')
+    search_fields = ('^suscriptor__suscriptor__nombre', '^suscriptor__suscriptor__apellido')
 
     #Filtra la lista pertenecientes al creador 
     def queryset(self, request):

sofi/tools/certificado/certificado.py

         tematica_pdf = pdf.beginText(50,562)
         tematica_pdf.textLines(tematica.splitlines())
         pdf.drawText(tematica_pdf)
-        pdf.drawString(key_xy[0],10, key)
+        pdf.drawString(key_xy[0],key_xy[1], key)
         pdf.showPage()
 
         pdf.save()