diff -r ac0efb4abee4 django/views/generic/date_based.py
a
|
b
|
def archive_month(request, year, month,
|
164 | 164 | |
165 | 165 | def archive_week(request, year, week, queryset, date_field, |
166 | 166 | template_name=None, template_loader=loader, |
167 | | extra_context=None, allow_empty=True, context_processors=None, |
| 167 | extra_context=None, allow_empty=False, context_processors=None, |
168 | 168 | template_object_name='object', mimetype=None, allow_future=False): |
169 | 169 | """ |
170 | 170 | Generic weekly archive view. |
diff -r ac0efb4abee4 docs/generic_views.txt
a
|
b
|
in the *future* are not displayed unless
|
447 | 447 | * ``allow_empty``: A boolean specifying whether to display the page if no |
448 | 448 | objects are available. If this is ``False`` and no objects are available, |
449 | 449 | the view will raise a 404 instead of displaying an empty page. By |
450 | | default, this is ``True``. |
| 450 | default, this is ``False``. |
451 | 451 | |
452 | 452 | * ``context_processors``: A list of template-context processors to apply to |
453 | 453 | the view's template. See the `RequestContext docs`_. |