Begin implementing the CMS functions

This commit is contained in:
2022-07-21 13:50:36 +01:00
parent 3ff8cd6166
commit c5e811878b
4 changed files with 35 additions and 16 deletions

View File

@@ -22,7 +22,7 @@ class Home(View):
template_name = "index.html"
def get(self, request):
blocks = ContentBlock.objects.all().order_by("position")
blocks = ContentBlock.objects.filter(page="home").order_by("position")
print("BLOCKS", blocks)
print("ITER", [x.position for x in blocks])
context = {"blocks": blocks}