2021-11-30 05:15:59 +00:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from django.db import models
|
|
|
|
|
|
|
|
|
|
|
|
class Assignment(models.Model):
|
2021-12-06 22:27:17 +00:00
|
|
|
"""A copyright assignment to Conservancy."""
|
|
|
|
|
2021-11-30 05:15:59 +00:00
|
|
|
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'),
|
2021-12-06 22:27:17 +00:00
|
|
|
('specific', 'A specific period (details below)'),
|
2021-11-30 05:15:59 +00:00
|
|
|
],
|
|
|
|
default='up to this year',
|
|
|
|
)
|
2021-12-06 22:27:17 +00:00
|
|
|
coverage_from = models.DateField(blank=True)
|
|
|
|
coverage_to = models.DateField(blank=True)
|
2021-11-30 05:15:59 +00:00
|
|
|
attestation_of_copyright = models.BooleanField(
|
|
|
|
'I attest that I own the copyright on these works'
|
|
|
|
)
|