rossp/django-menu — pull request #9 by jondbaker (2013-09-01 14:46:30+00:00)
Title: Update Menu.save() method to pass *args and **kwargs argument. The curre...

...nt

implementation explicitly lists force_insert and force_update only. Considering
the full list of kwargs save() expects includes 'using' and 'update_fields',
this is problematic if these kwargs need to be specified when saving a new Menu
object. For example, when create a new Menu with factory-boy, the user is
presented with the following error: "TypeError: save() got an unexpected
keyword argument 'using'". Since the current implementation uses the default
values for force_insert and force_update anyway, simply passing *args and
**kwargs is an acceptable way to fulfill the underlying API contract.