old_contents: # -*- coding: utf-8 -*-
  import factory
  
  from .models import Secret
  
  
  class SecretFactory(factory.DjangoModelFactory):
      """DjangoModelFactory for object Secret."""
  
      name = factory.Faker('name')
      text = factory.Faker('bs')
  
      class Meta:
          model = Secret
  
new_contents: # -*- coding: utf-8 -*-
  import factory
  from factory.django import DjangoModelFactory
  
  from .models import Secret
  
  
  class SecretFactory(DjangoModelFactory):
      """DjangoModelFactory for object Secret."""
  
      name = factory.Faker('name')
      text = factory.Faker('bs')
  
      class Meta:
          model = Secret
  
subject: fix for new version of factoryboy