Skip to content

Commit

Permalink
removing unneeded files
Browse files Browse the repository at this point in the history
  • Loading branch information
Corey Oordt committed Aug 27, 2009
1 parent 13154fd commit 603352c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 266 deletions.
218 changes: 0 additions & 218 deletions categories/editor.py

This file was deleted.

Empty file.
25 changes: 0 additions & 25 deletions categories/tests/views.py

This file was deleted.

23 changes: 0 additions & 23 deletions categories/views.py
Original file line number Diff line number Diff line change
@@ -1,23 +0,0 @@
from django.shortcuts import get_object_or_404, render_to_response
from django.template import RequestContext
from categories.models import Category
from stories.models import Story
from django.db.models import Q
from django.views.decorators.cache import cache_page

def category_detail(request, slug, with_stories=False,
template_name='categories/category_detail.html'):
context = {}
category = get_object_or_404(Category,
slug__iexact=slug)

context['category'] = category

if with_stories:
stories = Story.published.filter(Q(primary_category=category) | Q(categories__in=[category,]))
context['stories'] = stories

return render_to_response(template_name,
context,
context_instance=RequestContext(request)
)

0 comments on commit 603352c

Please sign in to comment.