{"comment":{"created_at":"2011-10-21T11:27:50Z","body":"I think it is too much work :) If your default is {} just specify `context={}`","updated_at":"2011-10-21T11:27:50Z","url":"https://api.github.com/repos/seldon/django-flexi-auth/issues/comments/2480157","id":2480157,"user":{"gravatar_id":"1f54010908244c844389dc9d7514f737","avatar_url":"https://secure.gravatar.com/avatar/1f54010908244c844389dc9d7514f737?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/feroda","id":232176,"login":"feroda"}},"action":"created","issue":{"number":13,"created_at":"2011-10-21T06:56:43Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Hi seldon,\r\n\r\nplease provide a default for `context` parameter in `ObjectWithContext.__init__`\r\n\r\nThis avoid specifying empty context where not needed. \r\nIn 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`.\r\n\r\nThis may me the best solution since context is handled by `can_*` method implemented in the Django project that uses flexi_auth.\r\nflexi_auth just forward it.\r\n\r\nThe choice is up to you","comments":2,"title":"ObjectWithContext provide default for `context` parameter","updated_at":"2011-10-21T11:27:50Z","url":"https://api.github.com/repos/seldon/django-flexi-auth/issues/13","id":2012840,"assignee":null,"milestone":null,"closed_at":null,"user":{"gravatar_id":"1f54010908244c844389dc9d7514f737","avatar_url":"https://secure.gravatar.com/avatar/1f54010908244c844389dc9d7514f737?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/feroda","id":232176,"login":"feroda"},"html_url":"https://github.com/seldon/django-flexi-auth/issues/13","labels":[],"state":"open"},"legacy":{"issue_id":2012840,"comment_id":2480157}}