-
Notifications
You must be signed in to change notification settings - Fork 21
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
[BUG] Workflow admin view is breaking. SortableAdmin is not working as expected #268
Comments
.. |
Also removing the SortableInlineAdminMixin from WorkflowStepInline loads the admin view correctly in line https://github.com/django-cms/djangocms-moderation/blob/master/djangocms_moderation/admin.py#L1003 |
This comment might support your finding @vipulnarang95: https://django-admin-sortable2.readthedocs.io/en/latest/installation.html#upgrading-from-version-1
@joshyu Can you confirm @vipulnarang95's finding and that it solves the problem? |
@fsbraun , |
We need to modify forms at https://github.com/django-cms/djangocms-moderation/blob/master/djangocms_moderation/forms.py#L26 |
@vipulnarang95 , how to update this form? Can you share more detail? |
I found that the error I mentioned was ever mentioned by Sergi of What.digital and he raised a PR for it.jrief/django-admin-sortable2#371 |
Hi @fsbraun / @vipulnarang95, From my understanding, the sorting functionality might be in the requirements list, so I think it's not a best solution only to remove the dependencies of Whether can we create a new branch How do you think? |
From the authoring perspective this functionality of Sort is available just drag and drop feature is not available. If the problem is there in the dependent addon and for our release target we can get a dev release and fix it in later stage as this is not a blocker and the feature is also not used at all. |
I'd appreciate if we could keep the drag-and-drop sorting capability. @jrief Can you give jrief/django-admin-sortable2#371 a second look? @vipulnarang95 @joshyu Is there a way of making a |
@fsbraun I checked and used this change in django admin sortable2 in my local and it still doesn't resolves the issue. The issue still exists Also the getattr error josh mentioned was coming after removing the SortableAdmin and SortableAdminMixin class. |
Hi @fsbraun , And I believe we should add attribute |
@vipulnarang95 Did jrief/django-admin-sortable2#404 solve this problem? |
Solved by jrief/django-admin-sortable2#404 |
Description
Workflow admin view is breaking. SortableAdmin is not working as expected
Name and link to open workflow admin form is empty
https://github.com/django-cms/djangocms-moderation/blob/master/djangocms_moderation/admin.py#L1014
Steps to reproduce
Go to django admin --> Moderations --> workflows
click on Workflow and it is not displaying the name to open to workflow form
Expected behaviour
Actual behaviour
Screenshots
Additional information (CMS/Python/Django versions)
Do you want to help fix this issue?
The text was updated successfully, but these errors were encountered: