diff --git a/api/models/agreement_signature.py b/api/models/agreement_signature.py index ecd9e03..27b59fe 100644 --- a/api/models/agreement_signature.py +++ b/api/models/agreement_signature.py @@ -22,13 +22,13 @@ class AgreementSignature(models.Model): contributor_id: int contributor = models.ForeignKey(Contributor, on_delete=models.CASCADE) - agreement_id = models.CharField(max_length=40) - signed_at = models.DateTimeField() + agreement_id = models.CharField(_("agreement id"), max_length=40) + signed_at = models.DateTimeField(_("signed at")) class Meta(TypedModelMeta): unique_together = ["contributor", "agreement_id"] - verbose_name = _("agreement_signature") - verbose_name_plural = _("agreement_signatures") + verbose_name = _("agreement signature") + verbose_name_plural = _("agreement signatures") def __str__(self): cont = f"Contributor {self.contributor} signed" diff --git a/api/models/contributor.py b/api/models/contributor.py index 2647a69..ffc83c8 100644 --- a/api/models/contributor.py +++ b/api/models/contributor.py @@ -18,11 +18,11 @@ class Contributor(models.Model): """A contributor that contributes to a repo""" id = models.IntegerField(primary_key=True) - email = models.EmailField() - name = models.TextField() - location = models.TextField() - html_url = models.TextField() - avatar_url = models.TextField() + email = models.EmailField(_("email")) + name = models.TextField(_("name")) + location = models.TextField(_("location")) + html_url = models.TextField(_("html url")) + avatar_url = models.TextField(_("avatar url")) class Meta(TypedModelMeta): verbose_name = _("contributor") diff --git a/api/models/repository.py b/api/models/repository.py index bf304bd..127024c 100644 --- a/api/models/repository.py +++ b/api/models/repository.py @@ -23,7 +23,7 @@ class Repository(models.Model): contributor = models.ForeignKey(Contributor, on_delete=models.CASCADE) gh_id = models.IntegerField(_("GitHub ID")) - points = models.IntegerField(default=0) + points = models.IntegerField(_("points"), default=0) class Meta(TypedModelMeta): unique_together = ["contributor", "gh_id"]