Skip to content
This repository has been archived by the owner on Sep 3, 2019. It is now read-only.

Commit

Permalink
Made sure only staff will get credit.
Browse files Browse the repository at this point in the history
  • Loading branch information
myles committed Mar 19, 2011
1 parent a0b1383 commit 313e455
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blog/feeds.py
Expand Up @@ -95,7 +95,7 @@ def get_object(self, bits):
if len(bits) != 1:
raise FeedDoesNotExist

return User.objects.filter(username_exact=bits[0])
return User.objects.filter(username_exact=bits[0], is_staff=True)

def title(self, obj):
if obj.get_full_name():
Expand Down
2 changes: 1 addition & 1 deletion blog/views.py
Expand Up @@ -157,7 +157,7 @@ def category_detail(request, slug, page=1, count=5, context={}, template_name='b
return render_to_response(template_name, context, context_instance=RequestContext(request))

def author_list(request, context={}, template_name='blog/author_list.html'):
authors = User.objects.all()
authors = User.objects.filter(is_staff=True)

context.update({
'authors': authors,
Expand Down

0 comments on commit 313e455

Please sign in to comment.