MCPcopy
hub / github.com/django/django / get_exclude

Method get_exclude

tests/modeladmin/tests.py:450–451  ·  view source on GitHub ↗
(self, request, obj=None)

Source from the content-addressed store, hash-verified

448 def test_overriding_get_exclude(self):
449 class BandAdmin(ModelAdmin):
450 def get_exclude(self, request, obj=None):
451 return ["name"]
452
453 self.assertEqual(
454 list(BandAdmin(Band, self.site).get_form(request).base_fields),

Callers 1

test_default_fieldsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected