diff --git a/scipost/admin.py b/scipost/admin.py index 6eae136840806cbbfae932c1051a67d677a83064..836a0893fe4b1b98652117fcd43de2c14c2b3d13 100644 --- a/scipost/admin.py +++ b/scipost/admin.py @@ -30,7 +30,7 @@ admin.site.register(Remark, RemarkAdmin) class RegistrationInvitationAdmin(admin.ModelAdmin): - search_fields = ['last_name', 'email'] + search_fields = ['first_name', 'last_name', 'email', 'invitation_key'] admin.site.register(RegistrationInvitation, RegistrationInvitationAdmin) diff --git a/scipost/utils.py b/scipost/utils.py index 80c8805910f23b6ce3bbdfab6af07cd69ef5ee90..d3524aada05175251b6eeaf9f6f340f3a04d771d 100644 --- a/scipost/utils.py +++ b/scipost/utils.py @@ -283,12 +283,6 @@ class Utils(object): 'of established, professionally practising scientists), designed to ' 'ensure the highest achievable scientific quality while minimizing the ' 'burden of the editorial workflow.\n\n' -# 'The SciPost.org portal has been intensively developed over the last ' -# 'few months. It is legally based on a not-for-profit foundation and will ' -# 'operate in perpetuity as a non-commercial entity at the exclusive service ' -# 'of the academic sector. We are now entering the next phase in the ' -# 'implementation, which is to build up the community of professional ' -# 'academics who will help operate it.\n\n' 'SciPost.org is legally based on a not-for-profit foundation and will ' 'operate in perpetuity as a non-commercial entity at the exclusive service ' 'of the academic sector. ' diff --git a/scipost/views.py b/scipost/views.py index e07fd36a563418b94236bccaaf53b2531aba730c..2ab275ce6f831dee5b28e0da0e68228dc782f074 100644 --- a/scipost/views.py +++ b/scipost/views.py @@ -278,7 +278,6 @@ def invitation(request, key): invitation.save() Utils.create_and_save_contributor(key) Utils.send_registration_email() - #return HttpResponseRedirect(reverse('scipost:thanks_for_registering')) context = {'ack_header': 'Thanks for registering to SciPost.', 'ack_message': ('You will receive an email with a link to verify ' 'your email address. Please visit this link within 48 hours. ' diff --git a/submissions/admin.py b/submissions/admin.py index d013189cd317f74319cb6401d7a4ce433323df6e..955b2b1ede80c145970f43c6cb2081cd1f74fd9d 100644 --- a/submissions/admin.py +++ b/submissions/admin.py @@ -18,7 +18,10 @@ admin.site.register(EditorialAssignment, EditorialAssignmentAdmin) class RefereeInvitationAdmin(admin.ModelAdmin): - search_fields = ['submission__title'] + search_fields = ['submission__title', 'submission__author_list', + 'referee__user__last_name', + 'first_name', 'last_name', 'email_address', ] + admin.site.register(RefereeInvitation, RefereeInvitationAdmin)