diff --git a/openslides/agenda/static/js/agenda/agenda.js b/openslides/agenda/static/js/agenda/agenda.js index b720052fd..bf7c5387c 100644 --- a/openslides/agenda/static/js/agenda/agenda.js +++ b/openslides/agenda/static/js/agenda/agenda.js @@ -41,7 +41,7 @@ angular.module('OpenSlidesApp.agenda', []) }) .controller('ItemListCtrl', function($scope, Agenda, i18n) { - Agenda.bindAll($scope, 'items'); + Agenda.bindAll({}, $scope, 'items'); $scope.test_plural = i18n.ngettext('test', 'tests', 2); $scope.test_singular = i18n.ngettext('test', 'tests', 1); }) diff --git a/openslides/assignment/serializers.py b/openslides/assignment/serializers.py index b3cbfb4ea..e18569b3e 100644 --- a/openslides/assignment/serializers.py +++ b/openslides/assignment/serializers.py @@ -109,10 +109,10 @@ class AssignmentFullSerializer(ModelSerializer): model = Assignment fields = ( 'id', - 'name', + 'title', 'description', - 'posts', - 'status', + 'open_posts', + 'phase', 'related_users', 'poll_description_default', 'polls', @@ -130,10 +130,10 @@ class AssignmentShortSerializer(AssignmentFullSerializer): model = Assignment fields = ( 'id', - 'name', + 'title', 'description', - 'posts', - 'status', + 'open_posts', + 'phase', 'related_users', 'poll_description_default', 'polls', diff --git a/openslides/assignment/static/js/assignments/assignments.js b/openslides/assignment/static/js/assignments/assignments.js index 071a2976a..8cfcc3e45 100644 --- a/openslides/assignment/static/js/assignments/assignments.js +++ b/openslides/assignment/static/js/assignments/assignments.js @@ -42,17 +42,17 @@ angular.module('OpenSlidesApp.assignments', []) }) .controller('AssignmentListCtrl', function($scope, Assignment) { - Assignment.bindAll($scope, 'assignments'); + Assignment.bindAll({}, $scope, 'assignments'); }) .controller('AssignmentDetailCtrl', function($scope, Assignment, assignment) { - Assignment.bindOne($scope, 'assignment', assignment.id) + Assignment.bindOne(assignment.id, $scope, 'assignment') }) .controller('AssignmentCreateCtrl', function($scope, Assignment) { $scope.assignment = {}; $scope.save = function(assignment) { - assignment.posts = 1; + assignment.open_posts = 1; assignment.tags = []; // TODO: the rest_api should do this Assignment.create(assignment); // TODO: redirect to list-view diff --git a/openslides/assignment/static/templates/assignments/assignment-detail.html b/openslides/assignment/static/templates/assignments/assignment-detail.html index 3b2050169..b3c623b6e 100644 --- a/openslides/assignment/static/templates/assignments/assignment-detail.html +++ b/openslides/assignment/static/templates/assignments/assignment-detail.html @@ -1,2 +1,2 @@ -