For the first part of your questions. You must use MultipleChoiceField
DAYS_CHOICES = ( (1, _('Monday')), ... (7, _('Sunday')), ) ... days = forms.MultipleChoiceField(choices=DAYS_CHOICES)
http://docs.djangoproject.com/en/dev/ref/forms/fields/#multiplechoicefield
This will give a list of Unicode objects.
For the second problem, you need to either include the application name in the abstract model declaration in the m2m field, or not declare it abstractly.
type = models.ManyToManyField(Category, null=True, blank=True)
or
type = models.ManyToManyField('events.Category', null=True, blank=True)
If the Category model was defined later in the same application in the models.py file, you can leave its Category , but since it is in another application, you need to specify the name of the application.
source share