Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
f6e35366
Commit
f6e35366
authored
Apr 15, 2015
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add field to hold DCO for project
Issue #516 Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
36407b10
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
weblate/trans/migrations/0032_subproject_agreement.py
weblate/trans/migrations/0032_subproject_agreement.py
+19
-0
weblate/trans/models/subproject.py
weblate/trans/models/subproject.py
+9
-0
No files found.
weblate/trans/migrations/0032_subproject_agreement.py
0 → 100644
View file @
f6e35366
# -*- coding: utf-8 -*-
from
__future__
import
unicode_literals
from
django.db
import
models
,
migrations
class
Migration
(
migrations
.
Migration
):
dependencies
=
[
(
'trans'
,
'0031_auto_20150415_1339'
),
]
operations
=
[
migrations
.
AddField
(
model_name
=
'subproject'
,
name
=
'agreement'
,
field
=
models
.
TextField
(
default
=
b''
,
help_text
=
'Agreement which needs to be approved before user can translate this component.'
,
verbose_name
=
'Contributor agreement'
,
blank
=
True
),
),
]
weblate/trans/models/subproject.py
View file @
f6e35366
...
...
@@ -309,6 +309,15 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
default
=
''
,
help_text
=
ugettext_lazy
(
'Optional URL with license details.'
),
)
agreement
=
models
.
TextField
(
verbose_name
=
ugettext_lazy
(
'Contributor agreement'
),
blank
=
True
,
default
=
''
,
help_text
=
ugettext_lazy
(
'Agreement which needs to be approved before user can '
'translate this component.'
)
)
# Adding new language
new_lang
=
models
.
CharField
(
...
...
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