diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 4220f94..fa834b3 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -15,3 +15,8 @@ repos:
hooks:
- id: ruff
- id: ruff-format
+ - repo: https://github.com/djlint/djLint
+ rev: v1.23.3
+ hooks:
+ - id: djlint-django
+ args: ["--reformat", "--lint", "--quiet"]
diff --git a/base/templates/base.html b/base/templates/base.html
index 49f52bf..d4ea3bb 100644
--- a/base/templates/base.html
+++ b/base/templates/base.html
@@ -4,8 +4,12 @@
+
+
- {% block title %}Musik{% endblock %}
+ {% block title %}
+ Musik
+ {% endblock title %}
Connexion
{% form form submit="Se connecter" %}
-{% endblock content %}
+ {% endblock content %}
diff --git a/game/forms.py b/game/forms.py
new file mode 100644
index 0000000..f305315
--- /dev/null
+++ b/game/forms.py
@@ -0,0 +1,15 @@
+from django import forms
+
+from . import models
+
+
+class GroupAddMembersForm(forms.ModelForm):
+ def __init__(self, *args, **kwargs):
+ super().__init__(*args, **kwargs)
+ self.fields["members"].queryset = self.fields["members"].queryset.exclude(
+ id=self.instance.owner.id
+ )
+
+ class Meta:
+ model = models.Group
+ fields = ["members"]
diff --git a/game/templates/game/group_confirm_delete.html b/game/templates/game/group_confirm_delete.html
index 696227f..f8d7e5e 100644
--- a/game/templates/game/group_confirm_delete.html
+++ b/game/templates/game/group_confirm_delete.html
@@ -1,7 +1,6 @@
{% extends "base.html" %}
{% load form %}
{% block content %}
-