Commit fixes bug #1887, fixes bug #1940. Commit ready to merge

- Legacy-Id: 11085
This commit is contained in:
Bartosz Balazinski 2016-04-02 21:21:05 +00:00
parent 9f90441aa6
commit b46081f514
2 changed files with 4 additions and 2 deletions

View file

@ -755,7 +755,7 @@ def make_dot(group):
@cache_page(60 * 60)
def dependencies(request, acronym, group_type=None, output_type="pdf"):
group = get_group_or_404(acronym, group_type)
if not group.features.has_documents:
if not group.features.has_documents or output_type not in ["dot", "pdf", "svg"]:
raise Http404
dothandle, dotname = mkstemp()

View file

@ -17,6 +17,7 @@
<tr>
<th>Team</th>
<th>Name</th>
<th>Area</th>
<th>AD</th>
<th>Secretaries</th>
<th>Chairs</th>
@ -27,6 +28,7 @@
<tr>
<td><a href="{% url "ietf.group.info.group_home" acronym=group.acronym %}">{{ group.acronym }}</a></td>
<td>{{ group.name }}</td>
<td><a href="{% url "ietf.group.info.group_home" acronym=group.parent.acronym %}">{{ group.parent.acronym }}</a></td>
<td>
{% for ad in group.ads %}
<a href="mailto:{{ ad.email.address }}">{{ ad.person.plain_name }}</a>{% if not forloop.last %}, {% endif %}
@ -50,4 +52,4 @@
{% block js %}
<script src="{% static "jquery.tablesorter/js/jquery.tablesorter.combined.min.js" %}"></script>
{% endblock %}
{% endblock %}