Don't default layer type in submit layer form

We want to force selection of a specific layer type, otherwise many
submitters will just leave it at the default value.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2013-02-23 16:18:38 +00:00
parent 710bc8fbb5
commit 4fef5c0c8e

View File

@ -24,7 +24,7 @@ class LayerItem(models.Model):
name = models.CharField('Layer name', max_length=40, unique=True) name = models.CharField('Layer name', max_length=40, unique=True)
created_date = models.DateTimeField('Created') created_date = models.DateTimeField('Created')
status = models.CharField(max_length=1, choices=LAYER_STATUS_CHOICES, default='N') status = models.CharField(max_length=1, choices=LAYER_STATUS_CHOICES, default='N')
layer_type = models.CharField(max_length=1, choices=LAYER_TYPE_CHOICES, default='M') layer_type = models.CharField(max_length=1, choices=LAYER_TYPE_CHOICES)
summary = models.CharField(max_length=200) summary = models.CharField(max_length=200)
description = models.TextField() description = models.TextField()
vcs_last_fetch = models.DateTimeField('Last successful fetch', blank=True, null=True) vcs_last_fetch = models.DateTimeField('Last successful fetch', blank=True, null=True)