This commit is contained in:
Pablo Martín 2013-11-19 19:37:58 +01:00
parent fbb549f630
commit cd3ef2e8e7
1 changed files with 2 additions and 3 deletions

View File

@ -38,12 +38,11 @@ TAGS_CHOICES = (
('nice', 'Nice'),
)
#"categories": "4,5",
class Book(models.Model):
title = models.CharField(max_length=200)
categories = MultiSelectField(choices=CATEGORY_CHOICES, max_length=10)
categories = MultiSelectField(choices=CATEGORY_CHOICES, max_length=10,
null=True, blank=True)
tags = MultiSelectField(choices=TAGS_CHOICES, max_length=10)
def __str__(self):