Commit 8d2081e2 authored by stef's avatar stef
Browse files

[enh] optional fields in violation

parent a8046fdc
......@@ -59,9 +59,9 @@ class Violation(models.Model):
media = models.CharField( max_length=20, choices=MEDIA)
temporary = models.BooleanField( )
contractual = models.BooleanField()
contract_excerpt = models.TextField()
contract_excerpt = models.TextField(blank=True)
loophole = models.BooleanField()
activationid= models.CharField(max_length=128)
activationid= models.CharField(max_length=128, blank=True)
def confirmations(self):
return self.confirmation_set.filter(key='').count()
......
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