Create Author mixin
This commit is contained in:
@@ -136,16 +136,6 @@ class Long(QuestionBase):
|
||||
def get_absolute_url(self):
|
||||
return reverse("longs:question_detail", kwargs={"pk": self.pk})
|
||||
|
||||
def get_authors(self):
|
||||
"""Returns a comma seperated text list of authors"""
|
||||
authors = ", ".join([i.username for i in self.author.all()])
|
||||
return authors
|
||||
|
||||
def get_author_objects(self):
|
||||
"""Returns a comma seperated text list of authors"""
|
||||
authors = [i for i in self.author.all()]
|
||||
return authors
|
||||
|
||||
def __str__(self):
|
||||
return "{} / {}".format(self.pk, self.description)
|
||||
examinations = [series.get_examination() for series in self.series.all()]
|
||||
|
||||
Reference in New Issue
Block a user