access context through table object (#31092)
This commit is contained in:
parent
c63b9f0a26
commit
2741961ead
|
@ -20,7 +20,7 @@
|
|||
|
||||
{% block table.tbody.row %}
|
||||
<tr
|
||||
{% if row_link %}
|
||||
{% if table.context.row_link %}
|
||||
{% if popup_edit %}
|
||||
rel="popup"
|
||||
{% endif %}
|
||||
|
|
|
@ -708,6 +708,7 @@ def test_manager_ou(app, superuser_or_admin, ou1):
|
|||
ou2 = OU.objects.get(name='ou2')
|
||||
assert set([e.text for e in ou_homepage.pyquery('td.name')]) == set(['OU1', 'Default organizational unit', 'ou2'])
|
||||
assert len(ou_homepage.pyquery('tr[data-pk="%s"] td.default span.true' % ou2.pk)) == 1
|
||||
assert len(ou_homepage.pyquery('tr[data-url="%s/"] td.default span.true' % ou2.pk)) == 1
|
||||
|
||||
# FIXME: table lines are not clickable as they do not contain an anchor
|
||||
# default ou cannot be deleted
|
||||
|
|
Loading…
Reference in New Issue