(self)
return blacklist
Returns a nested dictionary of blacklisted translations for a given app.

        A nested dictionary is used so that search for a translation fails at the
        first missing key.
Returns a nested dictionary of blacklisted translations for a given app.
Returns a nested dictionary of blacklisted translations for a given app .
def _get_blacklist(self):
        """
        Returns a nested dictionary of blacklisted translations for a given app.

        A nested dictionary is used so that search for a translation fails at the
        first missing key.
        """
        blacklist = {}
        for b in TransifexBlacklist.objects.filter(domain=self.app.domain, app_id=self.app.id).all():
            blacklist.setdefault(b.domain, {})
            blacklist[b.domain].setdefault(b.app_id, {})
            blacklist[b.domain][b.app_id].setdefault(b.module_id, {})
            blacklist[b.domain][b.app_id][b.module_id].setdefault(b.field_type, {})
            blacklist[b.domain][b.app_id][b.module_id][b.field_type].setdefault(b.field_name, {})
            blacklist[b.domain][b.app_id][b.module_id][b.field_type][b.field_name][b.display_text] = True
        return blacklist
def _get_blacklist ( self ) : blacklist = { } for b in TransifexBlacklist . objects . filter ( domain = self . app . domain , app_id = self . app . id ) . all ( ) : blacklist . setdefault ( b . domain , { } ) blacklist [ b . domain ] . setdefault ( b . app_id , { } ) blacklist [ b . domain ] [ b . app_id ] . setdefault ( b . module_id , { } ) blacklist [ b . domain ] [ b . app_id ] [ b . module_id ] . setdefault ( b . field_type , { } ) blacklist [ b . domain ] [ b . app_id ] [ b . module_id ] [ b . field_type ] . setdefault ( b . field_name , { } ) blacklist [ b . domain ] [ b . app_id ] [ b . module_id ] [ b . field_type ] [ b . field_name ] [ b . display_text ] = True return blacklist