class CountryFactory(factory.django.DjangoModelFactory):
    FACTORY_FOR = 'appname.Country'
FACTORY_DJANGO_GET_OR_CREATE = 'cc',
cc = 'US'
name = 'United States'
Избегайте дубликатов с фабриками factory_boy