Make pronouns visible on profile and miniprofile

This commit is contained in:
Celeste
2021-10-13 08:59:40 +02:00
parent 677a9da469
commit 4fbee9c3de
4 changed files with 27 additions and 15 deletions

View File

@ -229,7 +229,7 @@ class User(AbstractBaseUser):
blank=True,
choices=[("MAN", _("Man")), ("WOMAN", _("Woman")), ("OTHER", _("Other"))],
)
pronouns = models.CharField(_("pronouns"), max_length=64, default='')
pronouns = models.CharField(_("pronouns"), max_length=64, default="")
tshirt_size = models.CharField(
_("tshirt size"),
max_length=5,
@ -1492,9 +1492,7 @@ class OperationLog(models.Model):
User, related_name="logs", on_delete=models.SET_NULL, null=True
)
operation_type = models.CharField(
_("operation type"),
max_length=40,
choices=settings.SITH_LOG_OPERATION_TYPE,
_("operation type"), max_length=40, choices=settings.SITH_LOG_OPERATION_TYPE
)
def is_owned_by(self, user):