Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
django-newsbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WebU
shared
django-newsbox
Commits
ff63e4e1
Commit
ff63e4e1
authored
9 years ago
by
Olivier Le Brouster
Browse files
Options
Downloads
Patches
Plain Diff
useless (and bad) imports
parent
505b33df
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
newsbox/views.py
+3
-7
3 additions, 7 deletions
newsbox/views.py
with
3 additions
and
7 deletions
newsbox/views.py
+
3
−
7
View file @
ff63e4e1
# -*- 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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment