File tree Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Expand file tree Collapse file tree 4 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -34,3 +34,4 @@ class LiberatoriaOption(admin.ModelAdmin):
34
34
admin .site .register (models .SoftwareTool )
35
35
admin .site .register (models .LearningTopic )
36
36
admin .site .register (models .Waiver )
37
+ admin .site .register (models .GenericUserFile )
Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ msgstr "Ticket not found!"
127
127
128
128
#: .\coderdojomobile\templates\coderdojomobile\eventCheckInOut.html:39
129
129
#: .\coderdojomobile\templates\coderdojomobile\eventTicketUpload.html:33
130
+ #: .\coderdojomobile\templates\coderdojomobile\eventTicketUpload.html:28
130
131
msgid "Back to the event"
131
132
msgstr ""
132
133
@@ -150,6 +151,7 @@ msgstr "Participant List"
150
151
151
152
#: .\coderdojomobile\templates\coderdojomobile\eventDetails.html:63
152
153
#: .\coderdojomobile\templates\coderdojomobile\eventDetails.html:77
154
+ #: .\coderdojomobile\templates\coderdojomobile\eventDetails.html:70
153
155
msgid "Confirm"
154
156
msgstr ""
155
157
Original file line number Diff line number Diff line change @@ -131,6 +131,7 @@ msgstr "Biglietto non trovato!"
131
131
132
132
#: .\coderdojomobile\templates\coderdojomobile\eventCheckInOut.html:39
133
133
#: .\coderdojomobile\templates\coderdojomobile\eventTicketUpload.html:33
134
+ #: .\coderdojomobile\templates\coderdojomobile\eventTicketUpload.html:28
134
135
msgid "Back to the event"
135
136
msgstr "Torna all'evento"
136
137
@@ -154,6 +155,7 @@ msgstr "Lista Partecipanti"
154
155
155
156
#: .\coderdojomobile\templates\coderdojomobile\eventDetails.html:63
156
157
#: .\coderdojomobile\templates\coderdojomobile\eventDetails.html:77
158
+ #: .\coderdojomobile\templates\coderdojomobile\eventDetails.html:70
157
159
msgid "Confirm"
158
160
msgstr "Conferma"
159
161
Original file line number Diff line number Diff line change @@ -498,11 +498,14 @@ def import_ticket(ticket, event):
498
498
participant = Participant .objects .get (uuid = badge_id )
499
499
except Participant .DoesNotExist :
500
500
pass
501
- if badge_id is None and name is not None and surname is not None \
502
- and len (name ) and len (surname ) > 0 :
501
+ elif name is not None and surname is not None \
502
+ and len (name ) > 0 and len (surname ) > 0 :
503
503
# Look for the Participant
504
504
try :
505
- participant = Participant .objects .get (name = name , surname = surname )
505
+ participant = Participant .objects .get (
506
+ name__iexact = name ,
507
+ surname__iexact = surname
508
+ )
506
509
except Participant .DoesNotExist :
507
510
pass
508
511
except Participant .MultipleObjectsReturned :
You can’t perform that action at this time.
0 commit comments