File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1637,13 +1637,13 @@ database ID or whatever -- and returns a ``User`` object.
1637
1637
The ``authenticate`` method takes credentials as keyword arguments. Most of
1638
1638
the time, it'll just look like this::
1639
1639
1640
- class MyBackend:
1640
+ class MyBackend(object) :
1641
1641
def authenticate(self, username=None, password=None):
1642
1642
# Check the username/password and return a User.
1643
1643
1644
1644
But it could also authenticate a token, like so::
1645
1645
1646
- class MyBackend:
1646
+ class MyBackend(object) :
1647
1647
def authenticate(self, token=None):
1648
1648
# Check the token and return a User.
1649
1649
@@ -1665,7 +1665,7 @@ object the first time a user authenticates::
1665
1665
from django.conf import settings
1666
1666
from django.contrib.auth.models import User, check_password
1667
1667
1668
- class SettingsBackend:
1668
+ class SettingsBackend(object) :
1669
1669
"""
1670
1670
Authenticate against the settings ADMIN_LOGIN and ADMIN_PASSWORD.
1671
1671
@@ -1719,7 +1719,7 @@ any one backend grants.
1719
1719
The simple backend above could implement permissions for the magic admin
1720
1720
fairly simply::
1721
1721
1722
- class SettingsBackend:
1722
+ class SettingsBackend(object) :
1723
1723
1724
1724
# ...
1725
1725
You can’t perform that action at this time.
0 commit comments