gadventures / django-fsm-admin

Mixin and template tags to integrate django-fsm transitions into the django admin.
Other
203 stars 95 forks source link

Please, add tranition.custom['verbose'] #70

Closed vladimirmyshkovski closed 7 years ago

vladimirmyshkovski commented 7 years ago

in tempaltetags/fsm-admin.py: This will make it possible to use custom=dict('verbose') in @transition

By example: 58 line code

if 'verbose' in transition.custom::
    return '{0} {1}'.format(transition.custom['verbose'], model_name).title()
else:
    return '{0} {1}'.format(transition.name.replace('_', ' '), model_name).title()
vladimirmyshkovski commented 7 years ago

I saw that you have implemented button_name, sorry