Skip to content

Chained selection not working in admin #10

zhou0031 opened this Issue Nov 14, 2010 · 1 comment

2 participants


class Continent(models.Model):

class Country(models.Model):
country= models.CharField(max_length=20)
continent=ChainedForeignKey(Continent,chained_field="continent", chained_model_field="continent")

class State(models.Model):
country = ChainedForeignKey(Country,chained_field="country", chained_model_field="country")

class City(models.Model):
state=ChainedForeignKey(State,chained_field="state", chained_model_field="state")

class District(models.Model):
district = models.CharField(max_length=20)
city=ChainedForeignKey(City,chained_field="city", chained_model_field="city")

Above is my code using your app. I now have 2 issues
1. When I add country in admin. I can't assign the continent to each country because the continent is not in the list

  1. If I select United States, all states don't show in the dropdown list. Can you take a look?

THanks from Canada


Don't works yet, could you solve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.