website/www/conservancy/apps/assignment/models.py

28 lines
819 B
Python

from __future__ import unicode_literals
from django.db import models
class Assignment(models.Model):
full_name = models.CharField(max_length=255)
email = models.EmailField()
place_of_residence = models.TextField(
'Country of citizenship or residential address',
blank=True)
repository = models.URLField(
'Code repository',
blank=True,
)
coverage = models.CharField(
verbose_name='Time period to assign',
max_length=50,
choices=[
('up to this year', 'One-off up to and including this year'),
('ongoing', 'All existing and new contributions'),
],
default='up to this year',
)
attestation_of_copyright = models.BooleanField(
'I attest that I own the copyright on these works'
)