basestring

pull/94/head
eric 2020-02-17 14:07:44 -05:00
parent 53422989f9
commit 4e8f998272
1 changed files with 1 additions and 1 deletions

View File

@ -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