# HG changeset patch # User Pawel Solyga # Date 1232661676 0 # Node ID 70eb2493a346f093e48c0b25d60b69a6c90c923d # Parent a6397daf4006d86027532cbadee77e9bea1bc88b Rename clean_existing_user_not_equal_to_current function to clean_users_not_same in soc.logic.cleaning module and fix affected files. Patch by: Pawel Solyga Review by: to-be-reviewed diff -r a6397daf4006 -r 70eb2493a346 app/soc/logic/cleaning.py --- a/app/soc/logic/cleaning.py Thu Jan 22 17:26:14 2009 +0000 +++ b/app/soc/logic/cleaning.py Thu Jan 22 22:01:16 2009 +0000 @@ -56,7 +56,7 @@ return user_entity return wrapped -def clean_existing_user_not_equal_to_current(field_name): +def clean_users_not_same(field_name): """Check if the field_name field is a valid user and is not equal to the current user. """ diff -r a6397daf4006 -r 70eb2493a346 app/soc/views/models/club_app.py --- a/app/soc/views/models/club_app.py Thu Jan 22 17:26:14 2009 +0000 +++ b/app/soc/views/models/club_app.py Thu Jan 22 22:01:16 2009 +0000 @@ -78,7 +78,7 @@ label=soc.models.club_app.ClubApplication.backup_admin.verbose_name ), 'clean_backup_admin_link_id': - cleaning.clean_existing_user_not_equal_to_current('backup_admin_link_id'), + cleaning.clean_users_not_same('backup_admin_link_id'), } patterns = [(r'^%(url_name)s/(?Preview)$',