'Sets allowed values'

def __init__(self, user, *args, **kwargs):

    super(QueueForm, self).__init__(*args, **kwargs)
    manager = TicketQueue.objects
    if ('instance' in kwargs):
        instance = kwargs['instance']
        manager = manager.exclude((Q(parent=instance) & Q(pk=instance.id)))
    self.fields['parent'].queryset = Object.filter_permitted(user, manager, mode='x')
    self.fields['default_service'].queryset = Object.filter_permitted(user, Service.objects, mode='x')
    self.fields['waiting_time'].help_text = 'seconds'
    self.fields['name'].label = _('Name')
    self.fields['active'].label = _('Active')
    self.fields['parent'].label = _('Parent')
    self.fields['default_ticket_status'].label = _('Default    ticket    status')
    self.fields['default_ticket_priority'].label = _('Default    ticket    priority')
    self.fields['default_service'].label = _('Default    service')
    self.fields['waiting_time'].label = _('Waiting    time')
    self.fields['next_queue'].queryset = Object.filter_permitted(user, TicketQueue.objects, mode='x')
    self.fields['next_queue'].label = _('Next    queue')
    self.fields['ticket_code'].label = _('Ticket    code')
    self.fields['message_stream'].label = _('Message    stream')
    self.fields['message_stream'].widget.attrs.update({'popuplink': reverse('messaging_stream_add')})
    self.fields['details'].label = _('Details')
