Skip to content

Commit

Permalink
- fixed agenda autocomplete
Browse files Browse the repository at this point in the history
- fixed travis build
  • Loading branch information
kunitoki committed Jan 30, 2015
1 parent 7190596 commit 65b3ef9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ install:
- pip install -q Django==$DJANGO
- pip install coveralls
- pip install .
- pip install -r example/requirements.txt
- pip install -r requirements.txt
script:
- coverage run --timid --source=nublas manage.py test nublas
after_success:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
minimumInputLength: 2,
allowClear: true,
ajax: {
url: "",
url: "{% url 'nublas:contact_search_autocomplete' association.uuid %}",
dataType: 'json',
data: function (term, page) {
return {
Expand Down
6 changes: 4 additions & 2 deletions nublas/ui/views/agenda.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@ def dispatch(self, request, *args, **kwargs):
prefix='contacts')

return render_to_response(get_skin_relative_path('views/agenda/event_view.html'),
RequestContext(request, { 'inline_form': inline_form,
RequestContext(request, { 'association': a,
'inline_form': inline_form,
#'custom_form': custom_form,
'contact_formset': contact_formset,
'title': _('Adding new event for '),
Expand Down Expand Up @@ -434,7 +435,8 @@ def dispatch(self, request, *args, **kwargs):
contact_formset = contact_formset_class(instance=o, association=a, prefix='contacts')

return render_to_response(get_skin_relative_path('views/agenda/event_view.html'),
RequestContext(request, { 'inline_form': inline_form,
RequestContext(request, { 'association': a,
'inline_form': inline_form,
#'custom_form': custom_form,
'contact_formset': contact_formset,
'title': _('Edit event for '),
Expand Down

0 comments on commit 65b3ef9

Please sign in to comment.