Updated manager.py with f-strings.

This commit is contained in:
Kovitikus 2019-09-10 13:22:05 -04:00
parent 14401ae2f2
commit ef9653a04c

View file

@ -164,9 +164,9 @@ class AccountDBManager(TypedObjectManager, UserManager):
if typeclass:
# we accept both strings and actual typeclasses
if callable(typeclass):
typeclass = "%s.%s" % (typeclass.__module__, typeclass.__name__)
typeclass = f"{typeclass.__module__}.{typeclass.__name__}"
else:
typeclass = "%s" % typeclass
typeclass = f"{typeclass}"
query["db_typeclass_path"] = typeclass
if exact:
matches = self.filter(**query)