Skip to content

Commit 7645c61

Browse files
jcrtexidorbennylope
authored andcommitted
Add verbose names to model fields for better clarity
1 parent ed4817d commit 7645c61

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/organizations/abstract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class AbstractOrganizationUser(
176176
Abstract OrganizationUser model
177177
"""
178178

179-
is_admin = models.BooleanField(default=False)
179+
is_admin = models.BooleanField(verbose_name=_('is admin'), default=False)
180180

181181
class Meta(AbstractBaseOrganizationUser.Meta):
182182
abstract = True

src/organizations/base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,8 @@ class AbstractBaseOrganization(models.Model):
209209
the owner user.
210210
"""
211211

212-
name = models.CharField(max_length=200, help_text=_("The name of the organization"))
213-
is_active = models.BooleanField(default=True)
212+
name = models.CharField(verbose_name=_('name'), max_length=200, help_text=_("The name of the organization"))
213+
is_active = models.BooleanField(verbose_name=_('is active'), default=True)
214214

215215
objects = OrgManager()
216216
active = ActiveOrgManager()
@@ -322,6 +322,7 @@ class AbstractBaseInvitation(models.Model):
322322

323323
guid = models.UUIDField(editable=False)
324324
invitee_identifier = models.CharField(
325+
verbose_name=_('invitee identifier'),
325326
max_length=1000,
326327
help_text=_(
327328
"The contact identifier for the invitee, email, phone number,"

0 commit comments

Comments
 (0)