Commits

Luke Plant  committed 600b0d4

Fixed import cycle.

  • Participants
  • Parent commits 431925f

Comments (0)

Files changed (1)

File cciw/officers/utils.py

 
 import xlwt
 
-from cciw.officers.applications import applications_for_camp
-
 
 def camp_officer_list(camp):
     """
 
 
 def officer_data_to_xls(camp):
+    # Import here to avoid import cycle when starting from handle_mail script
+    from cciw.officers.applications import applications_for_camp
+
     # All the data we need:
     invites = camp.invitation_set.all().select_related('officer').order_by('officer__first_name',
                                                                            'officer__last_name')