Display and filter authors on index pages
This commit is contained in:
@@ -203,6 +203,8 @@ class ExamBase(models.Model):
|
||||
def get_authors(self):
|
||||
"""Returns a comma seperated text list of authors"""
|
||||
authors = ", ".join([i.username for i in self.author.all()])
|
||||
if not authors:
|
||||
return "None"
|
||||
return authors
|
||||
|
||||
def get_author_objects(self):
|
||||
|
||||
Reference in New Issue
Block a user