1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-21 03:58:26 +02:00

Fix tests

This commit is contained in:
Yohann D'ANELLO
2021-01-18 22:28:43 +01:00
parent d05a8339fe
commit ef4d74545a
7 changed files with 164 additions and 128 deletions

View File

@ -340,6 +340,9 @@ class Payment(models.Model):
def get_absolute_url(self):
return reverse_lazy("registration:user_detail", args=(self.registration.user.id,))
def __str__(self):
return _("Payment of {registration}").format(registration=self.registration)
class Meta:
verbose_name = _("payment")
verbose_name_plural = _("payments")

View File

@ -3,7 +3,6 @@
from django.contrib.auth.models import User
from tfjm.lists import get_sympa_client
from tfjm.matrix import Matrix
from .models import AdminRegistration, Payment, Registration