Begin implementing the CMS functions
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user