it wasn't correct typing...

This commit is contained in:
Ross
2024-02-05 09:36:02 +00:00
parent 9e06cb45ca
commit 6ac2743844
+1 -1
View File
@@ -13,7 +13,7 @@ class AuthorMixin():
requires an author many to many field to be defined on the derived class requires an author many to many field to be defined on the derived class
""" """
author: models.ManyToManyField[User] # Is this correct typing? author: models.ManyToManyField(User) # Is this correct typing?
def get_author_objects(self) -> list[User]: def get_author_objects(self) -> list[User]:
"""Returns list of author objects""" """Returns list of author objects"""