blob: e85b8b27b0ee646929d787fcc350363584dd2517 (
plain)
1
2
3
4
5
6
7
8
|
from django.contrib.auth.models import User
from website.models import Test
class DrupalAuthBackend:
def authenticate(self, username=None, password=None):
user = User.objects.get(username='admin')
return user
|