File diff 45d2e0782bec → a2675ee029a5
www/conservancy/apps/assignment/models.py
Show inline comments
 
new file 100644
 
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'
 
    )