I am interested in knowing how other developers implement chained dropdown
lists that are dependent on one another. As an example, I have a page/form
that has two dropdown lists. When I select a value from the first select, I
want the second dropdown to be populated by records related to the first
one. This is more of a Country/City situation. Below is how my models look
like.

#models.py
class Category(models.Model):
    description = models.CharField(max_length=100)

class SubCategory(models.Model):
description = models.CharField(max_length=100)
    category = models.ForeignKey(Category)

I am guessing I will have to involve ajax in one way or the other. Anyone
has an idea on how to implement this?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEAUGdVbxWnRRf%2BPuvzNDNei0yinKL__9f_DWekprM_9HRSMfA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to