-
Notifications
You must be signed in to change notification settings - Fork 95
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
Compatible with other django 3rd party apps #104
Comments
This is happening because they're both trying to modify the For example: Create if you don't have {% extends 'admin/change_form.html' %}
{% load fsm_admin %}
{% if save_on_top %}{% block submit_buttons_top %}{% fsm_submit_row %}{% endblock %}{% endif %}
{% block submit_buttons_bottom %}{% fsm_submit_row %}{% endblock %}
{% block after_field_sets %}
{{ block.super }}
{% fsm_transition_hints %}
{% endblock %} and use this version class PIAFormAdmin(GuardedModelAdmin, FSMTransitionMixin) |
This works but it's being applied to every model even ones that dont have the mixin. Leading to a "object has no attribute 'get_transition_hints'" error as a result. |
It seems the current version is not compatible with other django apps, such as Django-guardian. Only the first mixin will show up in the admin page. If I put the django-fsm-admin in front of django-guardian mixin, then only django-fsm-admin buttons will show. How can I use both packages on the admin page?
For example, this code will show django-fsm-admin buttons only.
This will show django-guardian buttons only
So the order matters. But I want to show buttons from both packages on the admin page.
The text was updated successfully, but these errors were encountered: