diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b729df4..e8604094 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,15 +8,19 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Added - Searching within involvement admin will now search more fields. - A new form field type for person numbers +- Inspection view for Position, showing applicants ### Changed - Switch to the materialize CSS/JS framework. - Election contact e-mail has been moved to the Role model and has been labeled as such. +- Contact information of team members is now available in the Team inspection view. ### Removed - Old migrations in the website app. ### Fixed - Searching for positions within the admin interface will no longer cause an error. -- Allow person numbers to be "T-numbers" +- Allow person numbers to be "T-numbers". - Several instances where dirrty wasn't triggered at the right time. +- Improved queries for loading positions. +- Disallow creating roles outside your team. ## [0.2.0] - 2017-04-07 ### Added diff --git a/website/involvement/rules.py b/website/involvement/rules.py index 6465da4a..2ae660af 100644 --- a/website/involvement/rules.py +++ b/website/involvement/rules.py @@ -90,6 +90,8 @@ def is_past_due(user, application): rules.add_perm('involvement.list_position', is_admin | is_official | is_approval_committee) +rules.add_perm('involvement.inspect_position', is_admin | is_position_official + | is_approval_committee_for) rules.add_perm('involvement.add_position', is_admin | is_official) rules.add_perm('involvement.change_position', is_admin | is_position_official) rules.add_perm('involvement.approve_position', is_admin diff --git a/website/involvement/templates/modeladmin/involvement/position/inspect.html b/website/involvement/templates/modeladmin/involvement/position/inspect.html new file mode 100644 index 00000000..e976fa3e --- /dev/null +++ b/website/involvement/templates/modeladmin/involvement/position/inspect.html @@ -0,0 +1,33 @@ +{% extends 'modeladmin/inspect.html' %} +{% load i18n %} + +{% block fields_output %} +