toastdriven/django-tastypie — pull request #686 by joshbohde (2012-10-10 04:15:02+00:00)
Title: 1.3 GFK

Proposed fix for #674.

Instead of using `func_closure`, this alters the `GenericResource` class to take a list of Resources it will accept, and looks them up based upon the `resource_name` of the url. This has the side-effect of allowing the `GenericResource` to limit the resources it will accept as valid. A potential downside is that `GenericForeignKeyField.to_class` no longer returns a class but a partial function.

Looking for feedback/thoughts on this.