add exam authors to collection/exam base

This commit is contained in:
Ross
2024-02-27 15:07:42 +00:00
parent f2b4e05ba5
commit 444ff0e983
8 changed files with 121 additions and 5 deletions
+8
View File
@@ -29,3 +29,11 @@ class AuthorMixin():
if not authors:
return "None"
return authors
def add_author(self, user: User):
"""Add an author to the object"""
self.author.add(user)
def remove_author(self, user: User):
"""Remove an author from the object"""
self.author.remove(user)