I have the following models

class Group(models.Model):
    name = models.CharField(max_length=32, unique=True)

class Subgroup(models.Model):
    name = models.CharField(max_length=32, unique=True)
    group = models.ForeignKey(Group)

class KeywordsList(models.Model):
    name = models.CharField(max_length=32, unique=True)

class Keywords(models.Model):
    keywords = models.ManyToMany(KeywordsList)
    subgroup = models.ForeignKey(Subgroup)

For each Subgroup I need to manage a list of keywords.
I'm trying to:
1) In my form to only display the keywords for that specific project
2) When I update the html select box with javascript by adding and
deleting keywords to automatically reflect in the database on
form.save.
How exactly can I do this?
Are my models designed properly to allow this?

-- 
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.

Reply via email to