Skip to content

Commit

Permalink
made sure other_links query set was ignoring links with revisions and…
Browse files Browse the repository at this point in the history
… to hide the other_links header in template if there are none
  • Loading branch information
rwblair committed Feb 5, 2016
1 parent 9acecd6 commit 5ec5b01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion open_fmri/apps/dataset/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def get_context_data(self, **kwargs):
context_revisions.append((revision, context_links))

context_links = []
links = self.object.link_set.all()
links = self.object.link_set.filter(revision__isnull=True)
for link in links:
try:
filename = urlparse(link.url).path
Expand Down

0 comments on commit 5ec5b01

Please sign in to comment.