# HG changeset patch # User Lennard de Rijk # Date 1233692295 0 # Node ID ce51d1e6ac6596e3a0811808e6b0a8e92dc531ea # Parent 38225f2ad3a6e620884f5afcf46567fcb060ccf2 Fixed an error in group_app view that didnt let you create a new application. Patch by: Lennard de Rijk Reviewed by: to-be-reviewed diff -r 38225f2ad3a6 -r ce51d1e6ac65 app/soc/views/models/group_app.py --- a/app/soc/views/models/group_app.py Tue Feb 03 15:18:40 2009 +0000 +++ b/app/soc/views/models/group_app.py Tue Feb 03 20:18:15 2009 +0000 @@ -117,7 +117,8 @@ user_entity = user_logic.logic.getForCurrentAccount() - if group_app_entity.applicant.key() != user_entity.key(): + if group_app_entity and ( + group_app_entity.applicant.key() != user_entity.key()): # someone else is applying remove the existing group application group_app_logic.logic.delete(group_app_entity)