MCPcopy
hub / github.com/django/django / ExcludingForm

Class ExcludingForm

tests/forms_tests/tests/tests.py:310–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

308 from django.forms import CharField
309
310 class ExcludingForm(ModelForm):
311 name = CharField(max_length=255)
312
313 class Meta:
314 model = Defaults
315 exclude = ["name", "callable_default"]
316
317 f = ExcludingForm(
318 {"name": "Hello", "value": 99, "def_date": datetime.date(1999, 3, 2)}

Callers 1

Calls 1

CharFieldClass · 0.90

Tested by 1