Django-nonrelで、django_openid_authを使っていたら、ログにWarningが出ているのに気付いた。
/Users/********/Documents/Titanium Studio Workspace/Sample/src/django/contrib/auth/__init__.py:26: DeprecationWarning: Authentication backends without a `supports_object_permissions` attribute are deprecated. Please define it in
.
DeprecationWarning)
/Users/********/Documents/Titanium Studio Workspace/Sample/src/django/contrib/auth/__init__.py:31: DeprecationWarning: Authentication backends without a `supports_anonymous_user` attribute are deprecated. Please define it in.
DeprecationWarning)
django_openid_auth/auth.pyのOpenIDBackendクラスにsupports_object_permissionsとsupports_anonymous_userを定義しろということらしい。ということで追加したら、Warningは出なくなりました。
# 略 class OpenIDBackend: """A django.contrib.auth backend that authenticates the user based on an OpenID response.""" supports_object_permissions = False supports_anonymous_user = False # 略