diff --git a/umap/templates/auth/group_form.html b/umap/templates/auth/group_form.html index 6a6261c0..16ea81e6 100644 --- a/umap/templates/auth/group_form.html +++ b/umap/templates/auth/group_form.html @@ -18,7 +18,7 @@
{% csrf_token %} {{ form }} - +
{% if group.user_set.count == 1 %} {% trans "Delete this team" %} diff --git a/umap/templates/umap/user_groups.html b/umap/templates/umap/user_groups.html index 3e14ccb3..1273d9ec 100644 --- a/umap/templates/umap/user_groups.html +++ b/umap/templates/umap/user_groups.html @@ -16,4 +16,4 @@ {% trans "New team" %} -{% endblock %} +{% endblock maincontent %} diff --git a/umap/tests/test_group_views.py b/umap/tests/test_group_views.py index 0138e38a..d880f850 100644 --- a/umap/tests/test_group_views.py +++ b/umap/tests/test_group_views.py @@ -1,6 +1,6 @@ import pytest -from django.urls import reverse from django.contrib.auth.models import Group +from django.urls import reverse pytestmark = pytest.mark.django_db