[Django]-Django using curry to build formsets with custom form

1👍

There is a nice example in Pro Django book of how curry works.

Simply it lets you take function with pre-defined arguments and save it as a new function to use later only with needed arguments. All this without running the function.

For the above case curry is a huge help, since we don’t need to instantiate RelationForm just to pass through the person argument.

Leave a comment