old_contents: import pytest
  
  from tests.utils import is_postgresql_env_with_json_field
  
  
  @pytest.mark.skipif(not is_postgresql_env_with_json_field(),
                      reason="requires postgresql >= 9.0.4")
  @pytest.mark.django_db
  def test_dirty_json_field():
      from tests.models import TestModelWithJSONField
  
      tm = TestModelWithJSONField.objects.create(json_field={'data': [1, 2, 3]})
  
      data = tm.json_field['data']
      data.append(4)
  
      assert tm.get_dirty_fields(verbose=True) == {
          'json_field': {
              'current': {'data': [1, 2, 3, 4]},
              'saved': {'data': [1, 2, 3]}
          }
      }
  
new_contents: import pytest
  
  from tests.utils import is_postgresql_env_with_json_field
  
  
  @pytest.mark.skipif(not is_postgresql_env_with_json_field(),
                      reason="requires postgresql >= 9.4.0")
  @pytest.mark.django_db
  def test_dirty_json_field():
      from tests.models import TestModelWithJSONField
  
      tm = TestModelWithJSONField.objects.create(json_field={'data': [1, 2, 3]})
  
      data = tm.json_field['data']
      data.append(4)
  
      assert tm.get_dirty_fields(verbose=True) == {
          'json_field': {
              'current': {'data': [1, 2, 3, 4]},
              'saved': {'data': [1, 2, 3]}
          }
      }
  
subject: Fix required postgres version