Hi, I have a simple blog application
I would like to be able to create a post and assign it to multiple categories Currently my model looks like below. I was thinking i could render the categories in the admin as checkboxes and then check multiple ones, if required, but i am not really sure how to do this in the admin section. Can someone give me some tips on the best way to do this ? Thanks class BlogCategory(models.Model): label = models.CharField(blank=True, max_length=50) slug = models.SlugField() class Meta: verbose_name_plural = "categories" def __unicode__(self): return self.label class BlogEntry(models.Model): category = models.ForeignKey(BlogCategory) owner = models.ForeignKey(User) title = models.CharField(max_length=150) body = models.TextField() timestamp = models.DateTimeField() --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---