Skip to content

Commit

Permalink
David is da bomb diggity.
Browse files Browse the repository at this point in the history
  • Loading branch information
eloyz committed Jul 31, 2011
1 parent 0dff372 commit 785cb69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/codrspace/views.py
Expand Up @@ -35,7 +35,7 @@ def add(request, template_name="add.html"):
""" Add a post """

posts = Post.objects.filter(author=request.user).order_by('-pk')
media_set = Media.objects.filter(author=request.user).order_by('-pk')
media_set = Media.objects.filter().order_by('-pk')
media_form = MediaForm()

if hasattr(request, 'FILES'):
Expand Down Expand Up @@ -73,7 +73,7 @@ def edit(request, pk=0, template_name="edit.html"):
""" Edit a post """
post = get_object_or_404(Post, pk=pk)
posts = Post.objects.filter(author=request.user).order_by('-pk')
media_set = Media.objects.filter(author=request.user).order_by('-pk')
media_set = Media.objects.filter().order_by('-pk')
media_form = MediaForm()

if hasattr(request, 'FILES'):
Expand Down

0 comments on commit 785cb69

Please sign in to comment.