MCPcopy
hub / github.com/django/django / formfield

Method formfield

django/contrib/postgres/fields/array.py:237–245  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

235 )
236
237 def formfield(self, **kwargs):
238 return super().formfield(
239 **{
240 "form_class": SimpleArrayField,
241 "base_field": self.base_field.formfield(),
242 "max_length": self.size,
243 **kwargs,
244 }
245 )
246
247 def slice_expression(self, expression, start, length):
248 # If length is not provided, don't specify an end to slice to the end

Calls

no outgoing calls