

try:
    # Configure a generator if the user is using model_mommy

    from model_mommy import generators

    def gen_translatablecontent(max_length):
        from fluent.fields import TranslatableContent
        return TranslatableContent(text=generators.gen_string(max_length))
    gen_translatablecontent.required = ['max_length']

    MOMMY_CUSTOM_FIELDS_GEN = {
        'fluent.fields.TranslatableField': gen_translatablecontent,
    }
except ImportError:
    pass


from django.apps import AppConfig

class FluentAppConfig(AppConfig):
    pass



try:
    # Configure a generator if the user is using model_mommy

    from model_mommy import generators

    def gen_translatablecontent(max_length):
        from fluent.fields import TranslatableContent
        return TranslatableContent(text=generators.gen_string(max_length))
    gen_translatablecontent.required = ['max_length']

    MOMMY_CUSTOM_FIELDS_GEN = {
        'fluent.fields.TranslatableField': gen_translatablecontent,
    }
except ImportError:
    pass


from django.apps import AppConfig

class FluentAppConfig(AppConfig):
    name = "fluent"

Add missing name to the AppConfig
Add missing name to the AppConfig

  
  
  try:
      # Configure a generator if the user is using model_mommy
  
      from model_mommy import generators
  
      def gen_translatablecontent(max_length):
          from fluent.fields import TranslatableContent
          return TranslatableContent(text=generators.gen_string(max_length))
      gen_translatablecontent.required = ['max_length']
  
      MOMMY_CUSTOM_FIELDS_GEN = {
          'fluent.fields.TranslatableField': gen_translatablecontent,
      }
  except ImportError:
      pass
  
  
  from django.apps import AppConfig
  
  class FluentAppConfig(AppConfig):
-     pass
+     name = "fluent"
  
Add missing name to the AppConfig
## Code Before:


try:
    # Configure a generator if the user is using model_mommy

    from model_mommy import generators

    def gen_translatablecontent(max_length):
        from fluent.fields import TranslatableContent
        return TranslatableContent(text=generators.gen_string(max_length))
    gen_translatablecontent.required = ['max_length']

    MOMMY_CUSTOM_FIELDS_GEN = {
        'fluent.fields.TranslatableField': gen_translatablecontent,
    }
except ImportError:
    pass


from django.apps import AppConfig

class FluentAppConfig(AppConfig):
    pass

## Instruction:
Add missing name to the AppConfig
## Code After:


try:
    # Configure a generator if the user is using model_mommy

    from model_mommy import generators

    def gen_translatablecontent(max_length):
        from fluent.fields import TranslatableContent
        return TranslatableContent(text=generators.gen_string(max_length))
    gen_translatablecontent.required = ['max_length']

    MOMMY_CUSTOM_FIELDS_GEN = {
        'fluent.fields.TranslatableField': gen_translatablecontent,
    }
except ImportError:
    pass


from django.apps import AppConfig

class FluentAppConfig(AppConfig):
    name = "fluent"
