Skip to content

Commit 3e00851

Browse files
committed
With ticket_type and reg_type fields now part of MeetingRegistratoin, removed the conditional handling of these attributes in the OpenID 'registration' scope handler.
- Legacy-Id: 17949
1 parent f06ab57 commit 3e00851

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/ietfauth/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,9 @@ def scope_registration(self):
243243
info = {
244244
'meeting': reg.meeting.number,
245245
# full_week, one_day, student:
246-
'ticket_type': getattr(reg, 'ticket_type') if hasattr(reg, 'ticket_type') else None,
246+
'ticket_type': reg.ticket_type,
247247
# in_person, onliine, hackathon:
248-
'reg_type': getattr(reg, 'reg_type') if hasattr(reg, 'reg_type') else None,
248+
'reg_type': reg.reg_type,
249249
}
250250

251251
return info

0 commit comments

Comments
 (0)