Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Commit

Permalink
Fix failing tests with apply_form
Browse files Browse the repository at this point in the history
  • Loading branch information
rossjones committed Nov 30, 2015
1 parent 0ba16b4 commit 551e93b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ckanext/dgu/tests/functional/test_publisher_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ def test_0_basic_application(self):
res = self.app.get(offset, status=200, extra_environ={'REMOTE_USER': 'user'})
assert 'Apply for membership' in res, res
form = res.forms[1]
print form
parent_publisher_id = form['parent'].value
parent_publisher_name = model.Group.get(parent_publisher_id).name
assert_equal(parent_publisher_name, publisher_name)
Expand Down
2 changes: 1 addition & 1 deletion ckanext/dgu/theme/templates/publisher/apply_form.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h2>Errors in form</h2>
</dt>
<dd>
{% if c.group %}
<input type="hidden" id="parent" name="parent" disabled="disabled" value="${c.group.id}"/>
<input type="hidden" id="parent" name="parent" disabled="disabled" value="{{c.group.id}}"/>
{{c.group.title}}
{% else %}
<select id="parent" name="parent" class="chzn-select" data-placeholder="Please choose a publisher">
Expand Down

0 comments on commit 551e93b

Please sign in to comment.