pbs/django-cms-roles — pull request #17 by kux (2013-09-22 11:09:10+00:00)
Title: UI for selecting an user's pages that is in a non-site-wide role and other refactorings

This implements LUN-826 and fixes LUN-1035

The page selection:
* uses a formset for each writer role
* each formset has a PageForm for each Page the user has access to
* refactor the user_setup view by extracting large portions of the logic in separate functions
* use an ajax call for lazy fetching an user's assigned pages. The lazy fetching is required because on a site with many users having non site wide roles it would take to long to render all of the page formsets upfront from the user_setup view

The pull request also contains a management command that can be used for searching for unmanaged page permissions and adding them to a non site wide role's derived_page_permissions list.