def create_device_type(model, manufacturer):
    '''
    .. versionadded:: 2019.2.0

    Create a device type. If the manufacturer doesn't exist, create a new manufacturer.

    model
        String of device model, e.g., ``MX480``
    manufacturer
        String of device manufacturer, e.g., ``Juniper``

    CLI Example:

    .. code-block:: bash

        salt myminion netbox.create_device_type MX480 Juniper
    '''
    nb_type = get_('dcim', 'device-types', model=model)
    if nb_type:
        return False
    nb_man = get_('dcim', 'manufacturers', name=manufacturer)
    new_man = None
    if not nb_man:
        new_man = create_manufacturer(manufacturer)
    payload = {'model': model, 'manufacturer': nb_man['id'], 'slug': slugify(model)}
    typ = _add('dcim', 'device-types', payload)
    ret_dict = {'dcim': {'device-types': payload}}
    if new_man:
        ret_dict['dcim'].update(new_man['dcim'])
    if typ:
        return ret_dict
    else:
        return False