{% set lookup_table = {
    'Debian': {
        'pkg': 'python-django',
    },
    'RedHat': {
        'pkg': 'python-django',
    },
    'CentOS-6': {
        'pkg': 'Django14',
    },
} %}

{# Use osfinger to do the lookup and fall back to os_family #}
{% set django = salt['grains.filter_by'](lookup_table,
    grain='osfinger',
    default=lookup_table.get(grains.get('os_family'), {}),
    merge=salt['pillar.get']('django:lookup')) %}

{% set lookup_table = {
    'Debian': {
        'pkg': 'python-django',
    },
    'RedHat': {
        'pkg': 'python-django',
    },
    'CentOS-6': {
        'pkg': 'Django14',
    },
} %}

{# Use osfinger to do the lookup and fall back to os_family #}
{% set django = salt['grains.filter_by'](lookup_table,
    merge=salt['pillar.get']('django:lookup')) %}

Remove incorrect usage of the 'default' argument
Remove incorrect usage of the 'default' argument

The 'default' argument takes the string for a key in the lookup dict.
