alesdotio / django-admin-shortcuts

Add simple and pretty shortcuts to the django admin homepage.
Other
205 stars 53 forks source link

Django 2 #31

Closed cyberbudy closed 6 years ago

cyberbudy commented 6 years ago

Is this plugin compatible with django version 2.0?

cyberbudy commented 6 years ago

Ok, I have found feature/2.0. It works pretty well, except that title in shortcuts cannot be translatable now. There is type error must be str, not __proxy__ here admin_shortcuts/templatetags/admin_shortcuts_tags.py in admin_shortcuts, line 61

I suppouse it's because proxy objects can't be concatenated directly.

shortcut['icon'] = get_shortcut_class(shortcut.get('url_name', shortcut.get('url', ''))+shortcut.get('title', ''))

alesdotio commented 6 years ago

Nice catch! Using force_text around it should solve it. Will look into it.

alesdotio commented 6 years ago

I just released 2.0.0 which fixes this exception 👍