it wasn't correct typing...
This commit is contained in:
+1
-1
@@ -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"""
|
||||||
|
|||||||
Reference in New Issue
Block a user