Skip to content

Commit

Permalink
others shows accepted posts
Browse files Browse the repository at this point in the history
  • Loading branch information
svmldn committed Sep 14, 2016
1 parent d97dde1 commit 803fd80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spartan/posts/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ def post(request, slug):
request.user != post.spartan.user:
raise Http404()
form = CreateOfferForm(data=request.POST or None, post=post)
other_posts = Announcement.objects.exclude(id=post.id).order_by('-id')[:4]
other_posts = Announcement.objects.exclude(id=post.id,
status=True).order_by('-id')[:4]
average = 0
confirms = []
bids = post.offers.all().order_by('price')
Expand Down

0 comments on commit 803fd80

Please sign in to comment.