This commit is contained in:
Ross
2022-03-29 22:04:03 +01:00
parent 8b34b679ba
commit 1a4d770a93
11 changed files with 341 additions and 22 deletions
+8
View File
@@ -572,6 +572,14 @@ class CaseCollection(models.Model):
show_title = models.BooleanField(default=False, help_text="Show the title of the cases")
show_description = models.BooleanField(default=False, help_text="Show the description of the cases")
show_discussion = models.BooleanField(default=False, help_text="Show the case discussion")
show_report = models.BooleanField(default=False, help_text="Show the case report")
author = models.ManyToManyField(
settings.AUTH_USER_MODEL,
blank=True,
help_text="Author of the collection",
#related_name="atlas_authored_cases",
)
def get_absolute_url(self):
return reverse("atlas:collection_detail_view", kwargs={"pk": self.pk})