1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Refs #34119 -- Skipped test_callable_default_hidden_widget_value_not_overridden when JSONField is not supported.

This commit is contained in:
Mariusz Felisiak 2022-11-28 09:47:52 +01:00 committed by GitHub
parent 20d575b101
commit 60a7bd8986
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@ from django.core.files.uploadedfile import SimpleUploadedFile
from django.db import models
from django.forms import CharField, FileField, Form, ModelForm
from django.forms.models import ModelFormMetaclass
from django.test import SimpleTestCase, TestCase
from django.test import SimpleTestCase, TestCase, skipUnlessDBFeature
from ..models import (
BoundaryModel,
@ -203,6 +203,7 @@ class ModelFormCallableModelDefault(TestCase):
""",
)
@skipUnlessDBFeature("supports_json_field")
def test_callable_default_hidden_widget_value_not_overridden(self):
class FieldWithCallableDefaultsModel(models.Model):
int_field = models.IntegerField(default=lambda: 1)