Add text limit to about fields
This commit is contained in:
parent
208a4e4ef7
commit
08eef6408f
2 changed files with 49 additions and 2 deletions
|
@ -55,7 +55,9 @@ class Organization(models.Model):
|
|||
verbose_name=_("short name"),
|
||||
help_text=_("Displayed beside user name during contests"),
|
||||
)
|
||||
about = models.TextField(verbose_name=_("organization description"))
|
||||
about = models.CharField(
|
||||
max_length=10000, verbose_name=_("organization description")
|
||||
)
|
||||
registrant = models.ForeignKey(
|
||||
"Profile",
|
||||
verbose_name=_("registrant"),
|
||||
|
@ -154,7 +156,9 @@ class Profile(models.Model):
|
|||
user = models.OneToOneField(
|
||||
User, verbose_name=_("user associated"), on_delete=models.CASCADE
|
||||
)
|
||||
about = models.TextField(verbose_name=_("self-description"), null=True, blank=True)
|
||||
about = models.CharField(
|
||||
max_length=10000, verbose_name=_("self-description"), null=True, blank=True
|
||||
)
|
||||
timezone = models.CharField(
|
||||
max_length=50,
|
||||
verbose_name=_("location"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue