from django.db import models

from solo.models import SingletonModel
from ckeditor.fields import RichTextField

class Contacto(SingletonModel):
    """
    This model store the Contacto object
    but this only have one instance
    """
    informacion_contacto = RichTextField('Informacion de Contacto', config_name='default')
    contacto_general = RichTextField('Contacto General', config_name='default')

    class Meta:
        verbose_name = "Configuracion Contacto"

class Acerca(SingletonModel):
    """
    This model store the Contacto object
    but this only have one instance
    """
    informacion_bienvenida = RichTextField('Informacion de Bienvenida', config_name='default')

    class Meta:
        verbose_name = "Configuracion de \"Acerca de\""

class Application(SingletonModel):
    title = models.CharField('Titulo', max_length=250)
    sub_title = models.CharField('Sub Titulo', max_length=250)
    logo = models.ImageField('Imagen', upload_to='cacao/')

    class Meta:
        verbose_name = "Configuracion de Aplicación"

from django.db import models

from solo.models import SingletonModel
from ckeditor.fields import RichTextField


class Contacto(SingletonModel):
    """
    This model store the Contacto object
    but this only have one instance
    """
    informacion_contacto = RichTextField(
        'Informacion de Contacto', config_name='default')
    contacto_general = RichTextField('Contacto General', config_name='default')

    class Meta:
        verbose_name = "Configuracion Contacto"


class Acerca(SingletonModel):
    """
    This model store the Contacto object
    but this only have one instance
    """
    informacion_bienvenida = RichTextField(
        'Informacion de Bienvenida', config_name='default')

    class Meta:
        verbose_name = "Configuracion de \"Acerca de\""


class Application(SingletonModel):
    title = models.CharField('Titulo', max_length=250)
    sub_title = models.CharField('Sub Titulo', max_length=250)
    logo = models.ImageField('Imagen',
                             upload_to='cacao/',
                             help_text="Formato PNG transparente y 512x512 pixels de tamaño")  # noqa

    class Meta:
        verbose_name = "Configuracion de Aplicación"

Set help text for app logo
Set help text for app logo

  from django.db import models
  
  from solo.models import SingletonModel
  from ckeditor.fields import RichTextField
+ 
  
  class Contacto(SingletonModel):
      """
      This model store the Contacto object
      but this only have one instance
      """
-     informacion_contacto = RichTextField('Informacion de Contacto', config_name='default')
+     informacion_contacto = RichTextField(
+         'Informacion de Contacto', config_name='default')
      contacto_general = RichTextField('Contacto General', config_name='default')
  
      class Meta:
          verbose_name = "Configuracion Contacto"
+ 
  
  class Acerca(SingletonModel):
      """
      This model store the Contacto object
      but this only have one instance
      """
-     informacion_bienvenida = RichTextField('Informacion de Bienvenida', config_name='default')
+     informacion_bienvenida = RichTextField(
+         'Informacion de Bienvenida', config_name='default')
  
      class Meta:
          verbose_name = "Configuracion de \"Acerca de\""
  
+ 
  class Application(SingletonModel):
      title = models.CharField('Titulo', max_length=250)
      sub_title = models.CharField('Sub Titulo', max_length=250)
-     logo = models.ImageField('Imagen', upload_to='cacao/')
+     logo = models.ImageField('Imagen',
+                              upload_to='cacao/',
+                              help_text="Formato PNG transparente y 512x512 pixels de tamaño")  # noqa
  
      class Meta:
          verbose_name = "Configuracion de Aplicación"
  
Set help text for app logo
## Code Before:
from django.db import models

from solo.models import SingletonModel
from ckeditor.fields import RichTextField

class Contacto(SingletonModel):
    """
    This model store the Contacto object
    but this only have one instance
    """
    informacion_contacto = RichTextField('Informacion de Contacto', config_name='default')
    contacto_general = RichTextField('Contacto General', config_name='default')

    class Meta:
        verbose_name = "Configuracion Contacto"

class Acerca(SingletonModel):
    """
    This model store the Contacto object
    but this only have one instance
    """
    informacion_bienvenida = RichTextField('Informacion de Bienvenida', config_name='default')

    class Meta:
        verbose_name = "Configuracion de \"Acerca de\""

class Application(SingletonModel):
    title = models.CharField('Titulo', max_length=250)
    sub_title = models.CharField('Sub Titulo', max_length=250)
    logo = models.ImageField('Imagen', upload_to='cacao/')

    class Meta:
        verbose_name = "Configuracion de Aplicación"

## Instruction:
Set help text for app logo
## Code After:
from django.db import models

from solo.models import SingletonModel
from ckeditor.fields import RichTextField


class Contacto(SingletonModel):
    """
    This model store the Contacto object
    but this only have one instance
    """
    informacion_contacto = RichTextField(
        'Informacion de Contacto', config_name='default')
    contacto_general = RichTextField('Contacto General', config_name='default')

    class Meta:
        verbose_name = "Configuracion Contacto"


class Acerca(SingletonModel):
    """
    This model store the Contacto object
    but this only have one instance
    """
    informacion_bienvenida = RichTextField(
        'Informacion de Bienvenida', config_name='default')

    class Meta:
        verbose_name = "Configuracion de \"Acerca de\""


class Application(SingletonModel):
    title = models.CharField('Titulo', max_length=250)
    sub_title = models.CharField('Sub Titulo', max_length=250)
    logo = models.ImageField('Imagen',
                             upload_to='cacao/',
                             help_text="Formato PNG transparente y 512x512 pixels de tamaño")  # noqa

    class Meta:
        verbose_name = "Configuracion de Aplicación"
