'Setting getter'

def get(name='', strict=False, **kwargs):

    if name:
        settings_qs = ModuleSetting.objects.filter(name=name)
    else:
        settings_qs = ModuleSetting.objects.all()
    if strict:
        settings_qs = settings_qs.filter(**kwargs)
    elif settings_qs:
        new_settings = settings_qs
        for arg in kwargs:
            new_settings = new_settings.filter(**{arg: kwargs[arg]})
            if new_settings:
                settings_qs = new_settings
    return settings_qs
