Revision 9179c8e7
b/snf-astakos-app/astakos/im/messages.py | ||
---|---|---|
186 | 186 |
UNKNOWN_IDENTIFIER = 'Unknown identifier.' |
187 | 187 |
PENDING_MEMBERSHIP_LEAVE = 'Your request is pending moderation by the Project owner.' |
188 | 188 |
USER_MEMBERSHIP_ACCEPTED = '%(realname)s has been accepted in the project.' |
189 |
USER_MEMBERSHIP_REMOVED = '%(realname)s has been removed from the project.' |
|
189 | 190 |
USER_LEFT_PROJECT = 'You have left the project.' |
190 | 191 |
USER_LEAVE_REQUEST_SUBMITTED = 'Your request to leave the project has been submitted successfully.' |
191 | 192 |
USER_JOIN_REQUEST_SUBMITTED = 'Your request to join the project has been submitted successfully.' |
b/snf-astakos-app/astakos/im/views.py | ||
---|---|---|
1459 | 1459 |
ctx.mark_rollback() |
1460 | 1460 |
else: |
1461 | 1461 |
realname = escape(m.person.realname) |
1462 |
msg = _(astakos_messages.USER_LEFT_PROJECT) % locals()
|
|
1462 |
msg = _(astakos_messages.USER_MEMBERSHIP_REMOVED) % locals()
|
|
1463 | 1463 |
messages.success(request, msg) |
1464 | 1464 |
return redirect(reverse('project_detail', args=(chain_id,))) |
1465 | 1465 |
|
Also available in: Unified diff