Skip to content
GitLab
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
c6e7ba69
Commit
c6e7ba69
authored
Apr 26, 2018
by
Guilhem Saurel
Browse files
description: blank=True
parent
87408e87
Changes
2
Hide whitespace changes
Inline
Side-by-side
rainboard/migrations/0010_blank_true.py
0 → 100644
View file @
c6e7ba69
# Generated by Django 2.0.4 on 2018-04-26 14:49
from
django.db
import
migrations
,
models
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'rainboard'
,
'0009_branch_keep_doc'
),
]
operations
=
[
migrations
.
AlterField
(
model_name
=
'project'
,
name
=
'description'
,
field
=
models
.
TextField
(
blank
=
True
),
),
migrations
.
AlterField
(
model_name
=
'robotpkg'
,
name
=
'description'
,
field
=
models
.
TextField
(
blank
=
True
),
),
migrations
.
AddField
(
model_name
=
'repo'
,
name
=
'description'
,
field
=
models
.
TextField
(
blank
=
True
),
),
]
rainboard/models.py
View file @
c6e7ba69
...
...
@@ -149,7 +149,7 @@ class Project(Links, NamedModel, TimeStampedModel):
main_forge
=
models
.
ForeignKey
(
Forge
,
on_delete
=
models
.
SET_NULL
,
null
=
True
,
blank
=
True
)
license
=
models
.
ForeignKey
(
License
,
on_delete
=
models
.
SET_NULL
,
blank
=
True
,
null
=
True
)
homepage
=
models
.
URLField
(
max_length
=
200
,
blank
=
True
,
null
=
True
)
description
=
models
.
TextField
()
description
=
models
.
TextField
(
blank
=
True
)
version
=
models
.
CharField
(
max_length
=
20
,
blank
=
True
,
null
=
True
)
updated
=
models
.
DateTimeField
(
blank
=
True
,
null
=
True
)
tests
=
models
.
BooleanField
(
default
=
True
)
...
...
@@ -291,6 +291,7 @@ class Repo(TimeStampedModel):
forked_from
=
models
.
PositiveIntegerField
(
blank
=
True
,
null
=
True
)
clone_url
=
models
.
URLField
(
max_length
=
200
)
travis_id
=
models
.
PositiveIntegerField
(
blank
=
True
,
null
=
True
)
description
=
models
.
TextField
(
blank
=
True
)
def
__str__
(
self
):
return
self
.
name
...
...
@@ -524,7 +525,7 @@ class Robotpkg(NamedModel):
license
=
models
.
ForeignKey
(
License
,
on_delete
=
models
.
SET_NULL
,
blank
=
True
,
null
=
True
)
public
=
models
.
BooleanField
(
default
=
True
)
description
=
models
.
TextField
()
description
=
models
.
TextField
(
blank
=
True
)
updated
=
models
.
DateTimeField
(
blank
=
True
,
null
=
True
)
def
main_page
(
self
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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