stylistically, I'd prefer:

    field_desc = '%s = %s%s' % (
        att_name,
        # comment explaining this
        '' if '.' in field_type else 'models.'
        field_type,
    )

If we could add a test as discussed in IRC, that would be super.