Skip to content

Commit

Permalink
assign credits on grid session check in
Browse files Browse the repository at this point in the history
  • Loading branch information
jennyq committed Dec 1, 2023
1 parent c81b1ae commit 73e4307
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tendenci/apps/events/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4301,6 +4301,10 @@ def registrant_check_in(request):
registrant.checked_in = True
registrant.checked_in_dt = datetime.now()
registrant.save()
if child_event:
# nested events don't have checked_out enabled, assign credits now
# the registrant here is an instance of RegistrantChildEvent
registrant.child_event.assign_credits(registrant.registrant)
response_d['checked_in_dt'] = registrant.checked_in_dt
if isinstance(response_d['checked_in_dt'], datetime):
response_d['checked_in_dt'] = response_d['checked_in_dt'].strftime('%m/%d %I:%M%p')
Expand Down

0 comments on commit 73e4307

Please sign in to comment.