Softcode the view_name of the ChainedSelect widget 

Softcode the view_name of the ChainedSelect widget. Now you can change the ajax view. You could do something like this:


	class Location(models.Model)
		continent = models.ForeignKey(Continent)
		country = ChainedForeignKey(
			Country, 
			chained_field="continent",
			chained_model_field="continent", 
			show_all=False, 
			auto_choose=True,
			view_name='my_view_filterchain'
		)
		.....

And I clean a little the code.

I hope that you like it :-)