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
--- 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.
"""
--- 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/(?P<access_type>review)$',