make fields in license not required

This commit is contained in:
Sanjay B 2015-08-01 14:21:33 +05:30
parent 7a48ca0095
commit fa8246ab5a

View File

@ -123,9 +123,9 @@ class ScriptScript(models.Model):
class License(ItfModel):
letter = models.CharField(max_length=2)
name = models.CharField(max_length=255)
short_description = models.TextField()
readable_file = models.FileField(upload_to='upload/licenses/short/')
legal_file = models.FileField(upload_to='upload/licenses/legal/')
short_description = models.TextField(blank=True)
readable_file = models.FileField(upload_to='upload/licenses/short/', blank=True)
legal_file = models.FileField(upload_to='upload/licenses/legal/', blank=True)
typ = models.CharField(choices=LICENSE_TYPE_CHOICES, max_length=32)
title_field = 'name'