This commit is contained in:
Ross
2021-02-28 16:28:15 +00:00
parent fd629489de
commit 549abd5305
3 changed files with 29 additions and 7 deletions
+4
View File
@@ -114,6 +114,10 @@ class Long(models.Model):
help_text="If a question should be freely available to browse", default=True
)
recreate_json = models.BooleanField(
help_text="If the json cache needs updating", default=False
)
def get_absolute_url(self):
return reverse("longs:long_detail", kwargs={"pk": self.pk})