~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/admin/offeringservice.py

Merge from submissions-admin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
    def add_projectset(self, req, group_size):
38
38
        """Add a new ProjectSet"""
39
39
        new_projectset = ProjectSet()
40
 
        new_projectset.max_students_per_group = int(group_size)
 
40
        if group_size == '':
 
41
            new_projectset.max_students_per_group = None
 
42
        else:
 
43
            new_projectset.max_students_per_group = int(group_size)
41
44
        new_projectset.offering = self.context
42
45
 
43
46
        req.store.add(new_projectset)