'Assign id for the json representation of group configuration.'

def assign_id(self, configuration_id=None):

    if configuration_id:
        self.configuration['id'] = int(configuration_id)
    else:
        self.configuration['id'] = generate_int_id(MINIMUM_GROUP_ID, MYSQL_MAX_INT, GroupConfiguration.get_used_ids(self.course))
