project/scipycon/registration/views.py
changeset 365 9fb175da83a5
parent 354 5fb620cdacf2
equal deleted inserted replaced
364:7d3cb6c7a22f 365:9fb175da83a5
   417                      'Accommodation on 14th night',
   417                      'Accommodation on 14th night',
   418                      'Accommodation on 15th night',
   418                      'Accommodation on 15th night',
   419                      'Accommodation on 16th night',
   419                      'Accommodation on 16th night',
   420                      'Accommodation on 17th night'])
   420                      'Accommodation on 17th night'])
   421 
   421 
   422     regs = Registration.objects.all()
   422     regs = Registration.objects.order_by(
       
   423       'registrant__first_name', 'registrant__last_name')
   423     for reg in regs:
   424     for reg in regs:
   424         row = []
   425         row = []
   425 
   426 
   426         payment, create = reg.registrant.payment_set.get_or_create(
   427         payment, create = reg.registrant.payment_set.get_or_create(
   427           user=reg.registrant, scope=reg.scope)
   428           user=reg.registrant, scope=reg.scope)