I've had 20 tabs open all day, all displaying django docs - but I
can't work this out.
A bookmark can have many categories, and a category can be in many
bookmarks. So I just want a simple table that consists of
category_id, bookmark_id
>From the docs I thought Django would create this automatically but
syncdb doesn't add it.
How do I add categories to my bookmarks?
Here are the models:
class Category(models.Model):
name = models.CharField(max_length=255)
class Bookmark(models.Model):
name = models.CharField(max_length=255)
description = models.CharField(max_length=255)
url = models.CharField(max_length=255)
categories = models.ManyToManyField(Category)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---