'Returns ``Group`` instance based on the given group name.'

def clean_group(self):

    name = self.cleaned_data[u'group']
    try:
        group = Group.objects.get(name=name)
        return group
    except Group.DoesNotExist:
        raise forms.ValidationError(self.fields[u'group'].error_messages[u'does_not_exist'])
