From 50c2f76d520b2396ae6f534fadd719e732edde06 Mon Sep 17 00:00:00 2001 From: Tobias Date: Thu, 17 Jan 2019 14:24:43 +1300 Subject: [PATCH] Badge print fixes --- pinaxcon/templates/registrasion/badge_overlay.svg | 8 ++++---- vendor/registrasion/registrasion/urls.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pinaxcon/templates/registrasion/badge_overlay.svg b/pinaxcon/templates/registrasion/badge_overlay.svg index 9f2cc08f..40c2c0ab 100644 --- a/pinaxcon/templates/registrasion/badge_overlay.svg +++ b/pinaxcon/templates/registrasion/badge_overlay.svg @@ -39,10 +39,10 @@ {% if ticket_type == "Student" or ticket_type == "Hobbyist" or "Only" in ticket_type %}{% else %}{{ user.attendee.attendeeprofilebase.attendeeprofile.company }}{% endif %} - {{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_1 }} + {{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_1|truncatechars:35 }} - {{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_2 }} + {{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_2|truncatechars:35 }} {{ ticket_type|upper }} @@ -69,10 +69,10 @@ {% if ticket_type == "Student" or ticket_type == "Hobbyist" or "Only" in ticket_type %}{% else %}{{ user.attendee.attendeeprofilebase.attendeeprofile.company }}{% endif %} - {{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_1 }} + {{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_1|truncatechars:35 }} - {{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_2 }} + {{ user.attendee.attendeeprofilebase.attendeeprofile.free_text_2|truncatechars:35 }} {{ ticket_type|upper }} diff --git a/vendor/registrasion/registrasion/urls.py b/vendor/registrasion/registrasion/urls.py index 77840138..ddf6d15a 100644 --- a/vendor/registrasion/registrasion/urls.py +++ b/vendor/registrasion/registrasion/urls.py @@ -31,7 +31,7 @@ public = [ url(r"^mybadge\.(png|svg|pdf)", user_badge, name="user_badge"), url(r"^badge/([0-9]+)$", badge, name="badge"), url(r"^badge/([0-9]+).(png|svg|pdf)$", badge, name="badge"), - url(r"^badge_print/([0-9]+).(png|svg|pdf)$", badge_print, name="badge_print"), + url(r"^badge_print/([0-9]+)", badge_print, name="badge_print"), url(r"^badger/([A-Za-z0-9]+)$", badger, name="badger"), url(r"^badger/", badger, name="badger"), url(r"^category/([0-9]+)$", product_category, name="product_category"),