diff --git a/blog/__pycache__/models.cpython-310.pyc b/blog/__pycache__/models.cpython-310.pyc index 5a64af2..dd9a52f 100644 Binary files a/blog/__pycache__/models.cpython-310.pyc and b/blog/__pycache__/models.cpython-310.pyc differ diff --git a/blog/__pycache__/urls.cpython-310.pyc b/blog/__pycache__/urls.cpython-310.pyc index 7a0e5dc..304c847 100644 Binary files a/blog/__pycache__/urls.cpython-310.pyc and b/blog/__pycache__/urls.cpython-310.pyc differ diff --git a/blog/__pycache__/views.cpython-310.pyc b/blog/__pycache__/views.cpython-310.pyc index c8b37f5..95a5985 100644 Binary files a/blog/__pycache__/views.cpython-310.pyc and b/blog/__pycache__/views.cpython-310.pyc differ diff --git a/blog/views.py b/blog/views.py index ee4f9ae..18ae431 100644 --- a/blog/views.py +++ b/blog/views.py @@ -40,7 +40,6 @@ def news(request): class BlogDetailView(DetailView): model = Blog template_name = 'blog/blogDetail.html' - context_object_name = 'objects' class BlogCreateView(LoginRequiredMixin, CreateView): diff --git a/templates/blog/blogDetail.html b/templates/blog/blogDetail.html index 8555637..bcbc331 100644 --- a/templates/blog/blogDetail.html +++ b/templates/blog/blogDetail.html @@ -4,17 +4,15 @@ {% load markdown_extras %}
{{ object.content | markdown | safe }}