Skip to content

Commit

Permalink
[#770] Example of search box auto-fill on projects listing page
Browse files Browse the repository at this point in the history
The actual search functionality has not been implemented yet, but an example of the search box can be seen on /projectsearch. Typeahead.js is used with a combination of local files (country and continents) and remote lookup (projects and organisations). Still need to:

- Test the performance on live database
- Clean up code (put javascript in seperate file)
  • Loading branch information
KasperBrandt committed Oct 22, 2014
1 parent b07de16 commit 8079f58
Show file tree
Hide file tree
Showing 8 changed files with 2,239 additions and 1 deletion.
2 changes: 1 addition & 1 deletion akvo/rsr/models/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def image_path(instance, file_name):

@models.permalink
def get_absolute_url(self):
return ('project_main', (), {'project_id': self.pk})
return ('project-main', (), {'project_id': self.pk})

def all_donations(self):
return Invoice.objects.filter(
Expand Down
Loading

0 comments on commit 8079f58

Please sign in to comment.