Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow the messages to be overridable. #83

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ticosax
Copy link
Contributor

@ticosax ticosax commented Jun 5, 2020

No description provided.

@@ -48,6 +48,8 @@ class FSMTransitionMixin(object):
fsm_field = ['state']
change_form_template = 'fsm_admin/change_form.html'
default_disallow_transition = not getattr(settings, 'FSM_ADMIN_FORCE_PERMIT', False)
success_message_template = _('%(obj)s successfully set to %(new_state)s')
error_message_template = _('Error! %(obj)s failed to %(transition)s')
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to have a trailing dot here by default (since it is a whole sentence), but this might cause translations to become outdated etc, so maybe better to keep it as before by default.
(However the missing dot would be the only reason to override/customize it for me)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants