from django.core.checks import Warning, register


def warn_1_3_changes(app_configs, **kwargs):
    return [
        Warning(
            'cmsplugin-contact-plus >= 1.3 has renamed the "input" field. Do not forget to migrate your '
            'database and update your templates',
            hint=None,
            obj=None,
            id='cmsplugin_contact_plus.W001',
        )
    ]


def register_checks():
    for check in [
        warn_1_3_changes,
    ]:
        register(check)

from django.core.checks import Warning, register


def warn_1_3_changes(app_configs, **kwargs):
    return [
        Warning(
            'cmsplugin-contact-plus >= 1.3 has renamed the "input" field. Do not forget to migrate your '
            'database and update your templates',
            hint=None,
            obj=None,
            id='cmsplugin_contact_plus.W001',
        )
    ]


def register_checks():
    for check in [
        # warn_1_3_changes,  # Might be more annoying than useful
    ]:
        register(check)

Comment out warning for renamed field
Comment out warning for renamed field

  from django.core.checks import Warning, register
  
  
  def warn_1_3_changes(app_configs, **kwargs):
      return [
          Warning(
              'cmsplugin-contact-plus >= 1.3 has renamed the "input" field. Do not forget to migrate your '
              'database and update your templates',
              hint=None,
              obj=None,
              id='cmsplugin_contact_plus.W001',
          )
      ]
  
  
  def register_checks():
      for check in [
-         warn_1_3_changes,
+         # warn_1_3_changes,  # Might be more annoying than useful
      ]:
          register(check)
  
Comment out warning for renamed field
## Code Before:
from django.core.checks import Warning, register


def warn_1_3_changes(app_configs, **kwargs):
    return [
        Warning(
            'cmsplugin-contact-plus >= 1.3 has renamed the "input" field. Do not forget to migrate your '
            'database and update your templates',
            hint=None,
            obj=None,
            id='cmsplugin_contact_plus.W001',
        )
    ]


def register_checks():
    for check in [
        warn_1_3_changes,
    ]:
        register(check)

## Instruction:
Comment out warning for renamed field
## Code After:
from django.core.checks import Warning, register


def warn_1_3_changes(app_configs, **kwargs):
    return [
        Warning(
            'cmsplugin-contact-plus >= 1.3 has renamed the "input" field. Do not forget to migrate your '
            'database and update your templates',
            hint=None,
            obj=None,
            id='cmsplugin_contact_plus.W001',
        )
    ]


def register_checks():
    for check in [
        # warn_1_3_changes,  # Might be more annoying than useful
    ]:
        register(check)
