mirror of
https://github.com/pretix/pretix.git
synced 2026-05-03 14:54:04 +00:00
Fix SVG QR code generation
This commit is contained in:
@@ -1526,7 +1526,7 @@ class EventQRCode(EventPermissionRequiredMixin, View):
|
||||
|
||||
if filetype == 'svg':
|
||||
factory = qrcode.image.svg.SvgPathImage
|
||||
img = qrcode.make('Some data here', image_factory=factory)
|
||||
img = qr.make_image(image_factory=factory)
|
||||
r = HttpResponse(img.to_string(), content_type='image/svg+xml')
|
||||
r['Content-Disposition'] = f'inline; filename="qrcode-{request.event.slug}.{filetype}"'
|
||||
return r
|
||||
|
||||
Reference in New Issue
Block a user