

def __init__(self, *args, **kwargs):
    user = kwargs.pop('user', None)
    logger.debug('user: %s', user)
    super(TagListForm, args).__init__(*args, **kwargs)
    queryset = Tag.objects.all()
    try:
        Permission.check_permissions(user, (permission_tag_view,))
    except PermissionDenied:
        queryset = AccessControlList.objects.filter_by_access(permission_tag_view, user, queryset)
    self.fields['tag'] = forms.ModelChoiceField(queryset=queryset, label=_('Tags'))

dataset/ETHPy150Open mayan-edms/mayan-edms/mayan/apps/tags/forms.py TagListForm.__init__/VarMisuse@40/52 `self`->`args`