Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
dashboard
Commits
55b6d3bc
Commit
55b6d3bc
authored
Feb 11, 2019
by
Guilhem Saurel
Browse files
blank suffix
parent
02c701ab
Pipeline
#2782
passed with stages
in 43 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/migrations/0029_blank_suffix.py
0 → 100644
View file @
55b6d3bc
# Generated by Django 2.1.5 on 2019-02-11 16:59
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'rainboard'
,
'0028_image_allow_failure'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'project'
,
name
=
'suffix'
,
field
=
models
.
CharField
(
blank
=
True
,
default
=
''
,
max_length
=
50
),
),
]
rainboard/models.py
View file @
55b6d3bc
...
...
@@ -192,7 +192,7 @@ class Project(Links, NamedModel, TimeStampedModel):
from_gepetto
=
models
.
BooleanField
(
default
=
True
)
cmake_name
=
models
.
CharField
(
max_length
=
200
,
blank
=
True
,
null
=
True
)
archived
=
models
.
BooleanField
(
default
=
False
)
suffix
=
models
.
CharField
(
max_length
=
50
,
default
=
''
)
suffix
=
models
.
CharField
(
max_length
=
50
,
default
=
''
,
blank
=
True
)
def
save
(
self
,
*
args
,
**
kwargs
):
self
.
name
=
valid_name
(
self
.
name
)
...
...
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