app/soc/logic/models/organization.py
changeset 1292 cf8b099bd787
parent 1171 26998a171c49
child 1307 091a21cf3627
--- a/app/soc/logic/models/organization.py	Thu Feb 12 23:26:23 2009 +0000
+++ b/app/soc/logic/models/organization.py	Thu Feb 12 23:35:44 2009 +0000
@@ -74,6 +74,9 @@
           }
 
       for admin in [application.applicant, application.backup_admin]:
+        if not admin:
+          continue
+
         properties['link_id'] = admin.link_id
         key_fields = request_logic.logic.getKeyFieldsFromFields(properties)
         request_logic.logic.updateOrCreateFromFields(properties, key_fields)