Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Discuss Data Project
Discuss Data
Commits
aa349dac
Commit
aa349dac
authored
Jun 02, 2020
by
felix.herrmann
Browse files
feat(maxlength): change max_length values for ddusers
parent
c698d1f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
discuss_data/ddusers/migrations/0004_auto_20200602_0
635
.py
→
discuss_data/ddusers/migrations/0004_auto_20200602_0
952
.py
View file @
aa349dac
# Generated by Django 2.2.12 on 2020-06-02 0
6:35
# Generated by Django 2.2.12 on 2020-06-02 0
9:52
from
django.db
import
migrations
import
django_bleach.models
...
...
@@ -14,16 +14,16 @@ class Migration(migrations.Migration):
migrations
.
AlterField
(
model_name
=
'foi'
,
name
=
'description'
,
field
=
django_bleach
.
models
.
BleachField
(
blank
=
True
,
max_length
=
8
00
),
field
=
django_bleach
.
models
.
BleachField
(
blank
=
True
,
max_length
=
12
00
),
),
migrations
.
AlterField
(
model_name
=
'institution'
,
name
=
'description'
,
field
=
django_bleach
.
models
.
BleachField
(
blank
=
True
,
max_length
=
8
00
),
field
=
django_bleach
.
models
.
BleachField
(
blank
=
True
,
max_length
=
12
00
),
),
migrations
.
AlterField
(
model_name
=
'user'
,
name
=
'research_profile_full'
,
field
=
django_bleach
.
models
.
BleachField
(
blank
=
True
,
max_length
=
8
00
,
verbose_name
=
'Research Profile (full)'
),
field
=
django_bleach
.
models
.
BleachField
(
blank
=
True
,
max_length
=
120
00
,
verbose_name
=
'Research Profile (full)'
),
),
]
discuss_data/ddusers/models.py
View file @
aa349dac
...
...
@@ -88,7 +88,7 @@ class User(AbstractUser):
"Country"
,
related_name
=
"user_country"
,
blank
=
True
)
research_profile_full
=
BleachField
(
blank
=
True
,
max_length
=
8
00
,
verbose_name
=
"Research Profile (full)"
blank
=
True
,
max_length
=
120
00
,
verbose_name
=
"Research Profile (full)"
)
research_profile_short
=
BleachField
(
max_length
=
280
,
...
...
@@ -256,7 +256,7 @@ class Country(models.Model):
class
FOI
(
models
.
Model
):
name
=
models
.
CharField
(
max_length
=
200
)
description
=
BleachField
(
max_length
=
8
00
,
blank
=
True
)
description
=
BleachField
(
max_length
=
12
00
,
blank
=
True
)
is_country
=
models
.
BooleanField
(
default
=
False
)
def
__str__
(
self
):
...
...
@@ -313,7 +313,7 @@ class Institution(models.Model):
image
=
models
.
ImageField
(
blank
=
True
,
null
=
True
)
image_large
=
models
.
ImageField
(
blank
=
True
,
null
=
True
)
website
=
models
.
URLField
(
blank
=
True
)
description
=
BleachField
(
max_length
=
8
00
,
blank
=
True
)
description
=
BleachField
(
max_length
=
12
00
,
blank
=
True
)
short_description
=
models
.
CharField
(
max_length
=
400
,
blank
=
True
)
location
=
models
.
CharField
(
max_length
=
20
,
blank
=
True
)
city
=
models
.
CharField
(
max_length
=
120
)
...
...
Write
Preview
Markdown
is supported
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