darklow / django-suit

Modern theme for Django admin interface
http://djangosuit.com/
Other
2.32k stars 704 forks source link

Fix getting admin_url when perm 'change' is missing and django>=2.2 #732

Closed danbaragan closed 5 years ago

danbaragan commented 5 years ago

Since django2.2 admin_url will be present in model dict with default None value and will make suit apply str methods on None. https://github.com/django/django/commit/a9f5652113f0721a7066e359ae28d14692ea3c47#diff-57866af2aff590165ffe4967107424fdR435

Please note that suit v2 doesn't seem to handle this either: https://github.com/darklow/django-suit/commit/04b7a141849c51ef22b20009dcf6b2de19437aa8

darklow commented 5 years ago

Fixed by https://github.com/darklow/django-suit/pull/731