Commit f6e35366 authored by Michal Čihař's avatar Michal Čihař

Add field to hold DCO for project

Issue #516
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 36407b10
# -*- 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),
),
]
......@@ -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(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment