Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
e7bdf011
Unverified
Commit
e7bdf011
authored
Mar 20, 2018
by
Thom Wiggers
📐
Browse files
Set max length for profile description
Closes
#615
parent
e9b4c45a
Changes
2
Hide whitespace changes
Inline
Side-by-side
website/members/migrations/0020_max_length_on_profile.py
0 → 100644
View file @
e7bdf011
# Generated by Django 2.0.2 on 2018-03-20 16:32
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'members'
,
'0019_delete_becomeamemberdocument'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'profile'
,
name
=
'profile_description'
,
field
=
models
.
TextField
(
blank
=
True
,
help_text
=
'Text to display on your profile'
,
max_length
=
4096
,
null
=
True
,
verbose_name
=
'Profile text'
),
),
]
website/members/models.py
View file @
e7bdf011
...
...
@@ -286,6 +286,7 @@ class Profile(models.Model):
help_text
=
_
(
'Text to display on your profile'
),
blank
=
True
,
null
=
True
,
max_length
=
4096
,
)
initials
=
models
.
CharField
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment