seldon/django-flexi-auth — Issue #13: ObjectContext provide default for `context` parameter
Author: feroda
Created: 2011-10-21 06:56:43+00:00
State: open

Hi seldon,

please provide a default for `context` parameter in ObjectContext.__init__

This avoid specifying empty context where not needed.
In my local version I set it to `{}`, but if you want to provide a more generic way to specify context you could set it to `None`.

This may me the best solution since context is handled by can_* method implemented in the Django project that uses flexi_auth.
flexi_auth just forward it.

The choice is up to you