What I'm trying to do is to filter a dropdown list with foregein key, with the value of a previus selected dropdown list:
cat_choices = (('AMA','Amateur Mayores'),('AJ','Amateur Juveniles'),('AME','Amateur Menores'),('P','Profesional')) class category(models.Model): name = models.CharField('Categoria', max_length=30) gender = models.CharField('Sexo',choices= (('M','Masculino'),('F','Femenino')), max_length=1) type = models.CharField('Tipo',choices=cat_choices , max_length=3) class boxer (person): gender = models.CharField('Sexo',choices= (('m','Masculino'),('F','Femenino')), max_length=30) type = models.CharField('Tipo',choices=cat_choices, max_length=30) category = models.ForeignKey(category) I need to filter categories in boxer admin with the value of gender, and type choose in boxer admin.... I was going to do it with js but I wanted to know if the something already done... thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/GRucdgLpKsMJ. 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.