Closed Tritikale closed 1 year ago
@Tritikale This actually is a bug in django-cms 3.10.0. I'd suggest to downgrade to 3.9 or install 3.10.1 once it is released.
Hello, @fsbraun could you put the link to the issue on the django-cms github ? Thanks
It's this issue with django-cms: https://github.com/django-cms/django-cms/issues/7288
This bug is fixed in django-cms==3.10.1rc1
: https://pypi.org/project/django-cms/3.10.1rc1/
Closing this, as it is fixed.
Description
When I try to see published blog article I'm getting AttributeError "'Post' object has no attribute 'get_draft_url'".
With edit page everything is fine.
The problem is in cms toolbar live.html
href="{% firstof cms_toolbar.get_object_draft_url cms_toolbar.request_path %}?{{ cms_toolbar.edit_mode_url_on }}">
which calls get_object_draft_url:And obj (Post) has no get_draft_url
Versions
python 3.8.10 django-cms 3.10.0 djangocms-blog 1.2.3
Expected behaviour
Opening blog published article normally)))
Actual behaviour
AttributeError 'Post' object has no attribute 'get_draft_url'