Hi Team,
django admin page has inline model. models.py<http://models.py> ------------- class Details(models.Model): url = models.CharField(max_length=250) description = models.TextField() created_at = models.DateField(auto_now_add=True) updated_at = models.DateField(auto_now=True) class Mapping(models.Model): utr = models.ForeignKey(Details) code = models.CharField(max_length=200) year = models.ForeignKey(Year) schedule = models.ForeignKey(Page) field_type = models.CharField(choices=TYPE_CHOICE, max_length=200) income = models.ForeignKey(Income, blank=True, null=True) expense = models.ForeignKey(Expense, blank=True, null=True) fields = models.ForeignKey(Field) admin.py<http://admin.py> ------------ class MappingInline(admin.TabularInline): class Media: js = (settings.MEDIA_URL + 'js/st-api.js', settings.MEDIA_URL + 'js/vendor/jquery.js') model=Mapping extra=0 admin.site<http://admin.site>.register(Details, inlines=[MappingInline]) admin.site<http://admin.site>.register(Mapping, MappingAdmin) => using st-api.js, i have written ajax calls to filter the foreign fields based on the other fields input. On selecting year, I have filtered the schedule based on year. On selecting Schedule, I have filtered the Income based on Schedule. Like wise I have filtered other fields(Income, expense, fields) On saving on admin page I am able to save the entries and same entries are rendered back when page gets refreshed. But, the filtered values are not available in the drop downs. Instead dropdowns are showing all the choices. Please help me out so that, after saving the entries, after page get refreshed, I need filtered dropdown list so that, we can update the dropdown list.(Ex : selected year, based on year schedule dropdown has filtered. I have selected one schedule and saved. Now page rendered back showing the selected schedule of that particular year. Now I need to select other schedule of the same year.) Thanks in advance [Aspire Systems] This e-mail message and any attachments are for the sole use of the intended recipient(s) and may contain proprietary, confidential, trade secret or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited and may be a violation of law. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/TY2PR02MB3536845D25572B29A7688866FF400%40TY2PR02MB3536.apcprd02.prod.outlook.com. For more options, visit https://groups.google.com/d/optout.

