Commit a6701c2
Ross Penman
Don't cache resource classes based on model class
resource_for_model passes the model instance, so resources can vary
based on model instance. Therefore, caching based on the model class can
cause incorrect resources to be used.1 parent 8f1a7c3 commit a6701c2
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
743 | 743 | | |
744 | 744 | | |
745 | 745 | | |
746 | | - | |
747 | 746 | | |
748 | | - | |
| 747 | + | |
749 | 748 | | |
750 | 749 | | |
751 | 750 | | |
| |||
0 commit comments