From ff63e4e128fcc6b3c95cf5b9f8995723c8bb9741 Mon Sep 17 00:00:00 2001 From: Olivier Le Brouster <olivier.le-brouster@webu.coop> Date: Thu, 1 Oct 2015 15:58:49 +0000 Subject: [PATCH] useless (and bad) imports --- newsbox/views.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/newsbox/views.py b/newsbox/views.py index 1773372..9879743 100644 --- a/newsbox/views.py +++ b/newsbox/views.py @@ -1,15 +1,11 @@ # -*- coding: utf-8 -*- from __future__ import unicode_literals -from django.http import Http404, HttpResponse -from django.shortcuts import render_to_response, get_object_or_404 -from django.template.context import RequestContext -from django.utils.translation import ugettext as _ -from django.db.models.loading import get_model +from django.http import Http404 from django.views.generic.dates import DateDetailView, ArchiveIndexView, \ YearArchiveView, MonthArchiveView, DayArchiveView -from .models import NewsboxBase, NewsboxSEOBase, NewsboxExpiredBase +from .models import NewsboxSEOBase, NewsboxExpiredBase class NewsboxBaseArchiveView(object): @@ -46,7 +42,7 @@ class NewsboxBaseArchiveView(object): 'with_pager': with_pager, 'date_list_period':self.date_list_period, }) - + return context def get_queryset(self): -- GitLab