diff --git a/boards/templates/boards/landing.html b/boards/templates/boards/landing.html --- a/boards/templates/boards/landing.html +++ b/boards/templates/boards/landing.html @@ -10,17 +10,6 @@ {% block content %}
-
- {% for image in images %} - - {% endfor %} -
-
{{ section_str|safe }}
diff --git a/boards/views/landing.py b/boards/views/landing.py --- a/boards/views/landing.py +++ b/boards/views/landing.py @@ -13,12 +13,9 @@ from boards.views.base import BaseBoardV PARAM_SECTION_STR = 'section_str' PARAM_LATEST_THREADS = 'latest_threads' -PARAM_IMAGES = 'images' TEMPLATE = 'boards/landing.html' -RANDOM_IMAGE_COUNT = 3 - class LandingView(BaseBoardView): @method_decorator(csrf_protect) @@ -39,8 +36,5 @@ class LandingView(BaseBoardView): params[PARAM_LATEST_THREADS] = ops - params[PARAM_IMAGES] = Attachment.objects.get_random_images( - RANDOM_IMAGE_COUNT) - return render(request, TEMPLATE, params)