Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

Commit

Permalink
Fixed processing for links to some sections
Browse files Browse the repository at this point in the history
  • Loading branch information
aih committed Jun 24, 2011
1 parent 240bc7e commit 57273c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion laws/views.py
Expand Up @@ -37,7 +37,8 @@ def target_to_section(request, codename, target_section):
else:
code_current = models.Code.objects.get(name = codename)
code_fn = code_current.fullname
target_section = target_section.rsplit('.',1)[0]+'.'
#target_section = target_section.rsplit('.',1)[0]+'.'
target_section = target_section.rstrip('.')+'.'
section_current = models.Section.objects.filter(code = code_current, secnumber = target_section)[0]
#print section_current
sectionfile = models.SectionFile.objects.get(section = section_current)
Expand Down

0 comments on commit 57273c1

Please sign in to comment.