Fix for django 1.6

has_auto_field method is not available anymore