diff --git a/libraryauth/views.py b/libraryauth/views.py index 91e691b3..75f5b5c0 100644 --- a/libraryauth/views.py +++ b/libraryauth/views.py @@ -90,7 +90,7 @@ class Authenticator: def __init__(self, request, library, *args, **kwargs): self.request = request - if isinstance(library, basestring): + if isinstance(library, str): self.library = Library.objects.get(user__username=library) elif isinstance(library, Library): self.library = library